Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all 8553 articles
Browse latest View live

Getting the plugin license infos

$
0
0

@Matthieu_from_NAVINN wrote:

Hi, I created a vb.net plugin using the rhino/zoo license system, it works nicely but I can't find anywhere how to access my plugin license infos from my code.

For example, I would like to to read plugin.licenseData.SerialNumber from a command, and change its behavior accordingly. (I don't get why licensedata is not a member of Mycommand.plugin)

Thanks for your help

Posts: 2

Participants: 2

Read full topic


Very strange: Property with alternating values..?!

$
0
0

@lungenstrudel wrote:

hey guys,

i encountered something very strange when debugging: when mouse-hovering over a property (this.upperCurve.PointAtEnd), i am displayed alternating values each time. one time it's (0,0,1), the other time (0,9.999999982,1) or the like. could this be a bug or am i totally missing something?!

best regards, heinz

Posts: 2

Participants: 2

Read full topic

Rhino for Xamarin 6.1.3 (Mac)

$
0
0

@Adrien_Lefieux wrote:

Dear Rhino Community,

I just upgraded Xamarin (Mac) to the last version (6.1.3) but in the Add-ins gallery I just have Game Development and no RhinoCommonXamarinStudioAddin available to install.

Is there any additional repository to add or installing from file?

I did not saw any information on the tutorial.

Thank you very much,
Adrien

Posts: 2

Participants: 1

Read full topic

How to create a control like CRhinoUiBlockPreview?

$
0
0

@Picol wrote:

Hi,

I want to show some custom object dynamically on a MFC control, just like CRhinoUiBlockPreview, instead of associating with a block instance. In other words, i want to use a control to draw the real-time preview of one or more objects when i modify its attributes on its config dialog.

Can i use CRhinoDisplayPipeline directly to achive it, and how?

Best regards,
Picol

Posts: 1

Participants: 1

Read full topic

Load windows Bitmap in memory to SetBitmapTexture

$
0
0

@ChristopherBotha wrote:

If i have my own code generating windows.drawing bitmaps, and want to pass them as textures to a surface in Rhinocommon, is this possible? Currently I only see load from filename?

Example. to solve BLIT in below.

Bitmap blit = new Bitmap(RawImage.ToBitmap, 640, 480);
Material mat = doc.Materials[material_index];
mat.SetBitmapTexture(blit); //?????? Already in memory, don't want write then read from disc
mat.CommitChanges();

Posts: 1

Participants: 1

Read full topic

WriteFile with No User Input

$
0
0

@John_Wheeler wrote:

Hi, I'm fairly new to Rhino development so excuse me if this has already been asked.

I'm trying to write C# code that saves the current document to an .obj format, but I don't want to have any user input necessary. I'd like to be able to specify or automatically provide all options necessary. Currently, there are a number of prompts in the methods I have tried.

Approach One:

RhinoApp.RunScript("-_SelAll \n_Export \"C:\myfile.obj\" \n _Enter");

This doesn't seem to work for me

Approach Two:

Rhino.FileIO.FileWriteOptions options = new Rhino.FileIO.FileWriteOptions();
options.WriteSelectedObjectsOnly = true;
options.SuppressDialogBoxes = true;
doc.WriteFile("C:\myfile.obj", options);

Nicely suppresses the popup dialogs, but then prompts for the options anyway.

Suggestions?

Posts: 2

Participants: 2

Read full topic

DisplayConduit wont turn off? (Solved_EBKAC)

$
0
0

@ChristopherBotha wrote:

hey there, sending conduit.Enabled = false; does not turn off the foreground drawing, even re initialising the conduit with a null string wont get rid of the text?

What am I missing?

Posts: 10

Participants: 5

Read full topic

How to ged my hands on some bad-objects

$
0
0

@Willem wrote:

Hi,

I'm in need of some invalid objects for stress testing my code. Is there a repository of bad-objects or a hidden command to create one?

-Willem

Posts: 2

Participants: 2

Read full topic


Rhino for Mac plugin Limitations?

$
0
0

@ChristopherBotha wrote:

Quick question, I'd like to test my plugin in Rhino for Mac but I HATE working on a mac, so I'm not keen to buy rhino for mac just to test this.

Does the trial version stop running plugins when its trial expires?

Posts: 1

Participants: 1

Read full topic

How to run scripts synchronized?

$
0
0

@Matteoz991 wrote:

How do i run a script synchronized if i'm outside a rhino script command? i know i can declare a script as script runner and every script called inside it will be sync but what if i'm outside a script command?

Posts: 7

Participants: 3

Read full topic

Wpf for Rhino

$
0
0

@Markus_Erhardt wrote:

Hi everybody,
I have some questions before starting to Code my own Plugins and toolbars for Rhino.
1) In the example given https://github.com/dalefugier/SampleCsWpfPanel what is the RhinoWindows ?
2) A colleague of mine tried it with this method, for a Winform and it worked
Rhino.UI.Panels.RegisterPanel(this, mypanel, "myparameters"), Properties.Resources.Paramètres1);
is it possible to give a WPF User Control or a WPF Windows instead?

Do you have other examples? the links on the wiki are dead http://wiki.mcneel.com/_media/legacy/en/CSMenuTest.zip

Posts: 3

Participants: 2

Read full topic

Read stl file directly

$
0
0

@Frank_Yang wrote:

  1. In plugin, i create a form with a button to load stl file.
  2. i keyin the path of stl into code.

my question is that is it possible to load the stl file directly by click the button?

Posts: 2

Participants: 2

Read full topic

RhinoPullCurveToMesh bug

$
0
0

@Biljana wrote:

Hi

I have a Mesh and a curve that lie on Mesh.
When I call RhinoPullCurveToMesh function, a get points in CRhinoPolylineOnMeshUserData. But at one edge of the mesh that I expect to have point there is not a point. Is this a function bug??

See attach picture

.

Posts: 3

Participants: 2

Read full topic

UserData OnDuplicate not being called when copy paste is used?

$
0
0

@joel_putnam wrote:

I am working with custom user data on Rhino Objects. I am able to handle updating needed fields when the OnDuplicate method is called when the user issues a copy command. It seems however that this method is not called if a user uses the short cut copy paste on an object?

Any clarification would be helpful.

Joel

Posts: 10

Participants: 2

Read full topic

Problem installing rhino add-in in Xamarin studio


Plugin license issue

$
0
0

@Matthieu_from_NAVINN wrote:

Hi, I created a plugin with your license system.
It works fine on my computer, but I tried on my colleague's computer and I get a strange message:

No license found on your system. The plugin won't work without a valid license. "Try" / "Close"

I don't get why a trial is offered, and there is nowhere to enter a product key!? Usually we have a window where we can choose to select a zoo server or add a standalone license!

I don't get the difference between my computer and his'. (Windows 10, Rhino 64bits)

Posts: 2

Participants: 2

Read full topic

CRhinoUiDockBar first show

$
0
0

@fthomas wrote:

Hi,

After having created a CRhinoUiDockBar during OnLoadPlugIn( ), I would be sure that this dock bar is visible if this is the fist time than the plugin start.

After the first use, everything is ok because Rhino Load/Save the dock bars states... without anything to do.

But, just for THE FIRST load, how ensure to show a toolbar ?

Posts: 3

Participants: 2

Read full topic

Threading Commands or UI

$
0
0

@John_Wheeler wrote:

Is it possible to kick off either commands or UI in a thread?

I have a plugin that runs some fairly CPU intensive stuff. I would like to have a UI panel get displayed before things start executing, but because everything happens on one thread everything just locks up for the duration and then the UI appears when all is done.

Right now, I'm creating and displaying a panel, running some script commands, executing some web based C# code, then updating the UI again. All this is inside my plugins' RunCommand call.

Posts: 2

Participants: 1

Read full topic

Patch surface

How append menu into rhino

Viewing all 8553 articles
Browse latest View live