Varun Bhartiya
  • Pune, Maharashtra
  • India
Share on Facebook
Share Twitter
  • Blog Posts
  • Discussions (11)
  • Events
  • Groups
  • Photos
  • Photo Albums
  • Videos

Varun Bhartiya's Discussions

Read write user data
4 Replies

Hello, I have studied pages on userdata:http://wiki.mcneel.com/developer/userdata…Continue

Started this discussion. Last reply by Varun Bhartiya Mar 25.

Semi-locked state in Rhino?
7 Replies

Is it possible to put rhino in semi-locked state where user can visualize the model, rotate it, pan, etc. but cannot make any change to the model, open/ save other models, close rhino, etc. ?Continue

Tags: rhino, locked

Started this discussion. Last reply by Dale Fugier Mar 25.

Run a script from a background thread
1 Reply

Is it possible to run a rhino script from a background thread? I am getting an error:Attempted to read or write protected memory. I am working on plugin development in which c#  plugin has to process…Continue

Tags: plugin, C#, Threading, Multithreading, Script

Started this discussion. Last reply by Dale Fugier Mar 19.

Open a .3dm file from hard disk
4 Replies

I am fairly new to rhino sdk and I am unable to figure out a simple step such as how to open an existing .3dm file from harddisk using C# plugin. Can someone guide me where can I find a sample code…Continue

Tags: documentation, example, plugin, C#, Rhino

Started this discussion. Last reply by Dale Fugier Mar 19.

 

Varun Bhartiya's Page

Latest Activity

Dale Fugier replied to Varun Bhartiya's discussion Semi-locked state in Rhino?
"Hi Varun, Like I mentioned, from within a command start your background process. But, do not let the command finish until the background process is complete. While your background thread is running, have the main thread poll to see if it still…"
Mar 25
Varun Bhartiya replied to Varun Bhartiya's discussion Semi-locked state in Rhino?
"Hello Dale,  Before it starts a background thread, it creates a copy of the currently open document.. Then in the background it is uploading this document to the server. So we want to restrict user from editing this document till the upload is…"
Mar 25
Varun Bhartiya replied to Varun Bhartiya's discussion Read write user data
"Hello Dale,  Subscribing to new document and begin open document events worked..  Thank you very much!!! Regards Varun"
Mar 25
Dale Fugier replied to Varun Bhartiya's discussion Semi-locked state in Rhino?
"I guess I need more about what you are doing. What kind of calculaton are you making? What do you want to see in the UI - the existing model or new geometry? Hopefully you won't be accessing the Rhino document from your calculation thread, as…"
Mar 22
Dale Fugier replied to Varun Bhartiya's discussion Read write user data
">New document does not have any plugin data. ReadDocument() is only called when Rhino is reading a document, either an existing document or a new document based on an existing template, that contains your plug-ins document data. >If the user…"
Mar 22
Varun Bhartiya replied to Varun Bhartiya's discussion Semi-locked state in Rhino?
"Hello Dale, Can you explain how to not let the command end? How do we do that? Regards Varun"
Mar 22
Varun Bhartiya replied to Varun Bhartiya's discussion Read write user data
"Hello Dale, New document does not have any plugin data.. So will rhino call plugin's ReadDocument when a new document is created? Is there any way for plugin to know that a new document event is triggered in rhino? If the user has opened a…"
Mar 22
Dale Fugier replied to Varun Bhartiya's discussion Read write user data
"Hi Varun, Here is a sample that you might find worth reviewing: https://github.com/dalefugier/SampleCsDocumentUserData Your plug-in's ReadDocument() member is called when Rhino discovered that the document it was reading contains your user…"
Mar 21
Dale Fugier replied to Varun Bhartiya's discussion Semi-locked state in Rhino?
"Hi Varun, Why not have the command start the background process and not let the command end until the background process is complete?  -- Dale"
Mar 21
Varun Bhartiya posted a discussion

Read write user data

Hello, I have studied pages on userdata:http://wiki.mcneel.com/developer/userdatahttp://wiki.mcneel.com/developer/sdksamples/documentdataI was able to read/write the plugin data in document data.. Problem: I want to figure out when user changed the document or precisely differentiate between these two use cases:1. User opened a document which has plugin data ---- Plugin…See More
Mar 21
Varun Bhartiya replied to Varun Bhartiya's discussion Semi-locked state in Rhino?
"I am developing a plugin in which there is some background processing involved.. Now until that background process is complete, I want to restrict modifications to the rhino model.. But at the same time it is good to atleast allow user to visualize…"
Mar 20
Dale Fugier replied to Varun Bhartiya's discussion Semi-locked state in Rhino?
"Sorry, no. Why do you need to do this?  -- Dale"
Mar 20
Varun Bhartiya posted a discussion

Semi-locked state in Rhino?

Is it possible to put rhino in semi-locked state where user can visualize the model, rotate it, pan, etc. but cannot make any change to the model, open/ save other models, close rhino, etc. ?See More
Mar 20
Dale Fugier replied to Varun Bhartiya's discussion Open a .3dm file from hard disk
"No, neither Rhino nor RhinoScript is thread safe.  -- Dale"
Mar 19
Dale Fugier replied to Varun Bhartiya's discussion Run a script from a background thread
"Neither Rhino not RhinoScript is thread safe. If you try to access either Rhino or RhinoScript in another tread, you will most likely crash Rhino. You can, though, perform non-Rhino calculations in worker threads. But when you access Rhino (e.g. SDK…"
Mar 19
Varun Bhartiya replied to Varun Bhartiya's discussion Open a .3dm file from hard disk
"Hello Dale, Is it possible to run a script from a background thread? I have opened up a new discussion: http://v5.rhino3d.com/forum/topics/run-a-script-from-a-background-thread Thanks for your help!!!"
Mar 19

Profile Information

Company, School, or Organization
Prototech solutions and services Pvt. Ltd.
URL - web site, blog, facebook page, or ...
http://www.prototechsolutions.com/
I am a
Software Developer
Which operating system do you prefer?
Windows
Discipline/Occupation
Graphics/Web Design, Industrial Design, Mechanical Design, Rendering/Animation

Comment Wall

You need to be a member of Rhino Community to add comments!

Join Rhino Community

  • No comments yet!
 
 
 

Translate

© 2013   Created by McNeel Admin.

Badges  |  Report an Issue  |  Terms of Service