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

RUI file, generate all the locales

$
0
0

@lucabrasi wrote:

Hi,

I have a question about RUI files and localization. I created a toolbar in my English Rhino, and I would like to translate it to another language.

In the file, it just appears 1033, but not the other languages. Is there a way to generate all the locales?

   <menu_item guid="ed10b2c5-59b2-4545-a48c-0e29abe76ae4">
    <text>
      <locale_1033>2Shapes App</locale_1033>
    </text>
    <macro_id>974903c8-a381-4ceb-bb6a-35f95b0628b6</macro_id>
    <macro_lib_id>43575973-941b-4723-acfb-540d58d84d0b</macro_lib_id>
  </menu_item>

Thank you!

Posts: 4

Participants: 3

Read full topic


DockBar Fixed

$
0
0

@MatrixRatrix wrote:

Hello,

My dockBar only dock to left or rigth side, I whant fixed de width size.

Or every time user drag the size the dock return do value.

There is a away?

Posts: 1

Participants: 1

Read full topic

Surface to mesh script in python?

$
0
0

@blazetron420 wrote:

Anyone written one? Can I see it? Can it be done without Ghpython-remote? Is there another way of doing this?
TNX.

Posts: 4

Participants: 2

Read full topic

Can't use example : Loft-surfaces

How to develop Rhino common in Rhino 5

ON_Brep compare

$
0
0

@ceruti wrote:

I have 2 ON_Brep and I need to compare to verify if they are the same.
Have you suggestions about to way to proceed?
It seem IsDuplicate is depecrated.
Thanks

Posts: 1

Participants: 1

Read full topic

One viewport, one document, one love

$
0
0

@Dani_Abalde wrote:

Hi,

it is possible to have multiple viewports, using different documents on each, at the same time? Or can I only display one document and in each viewport I have to hide everything I don’t want to visualize?

I want to preserve each state of a model in different viewports. I have several viewport controls and I would be ideal if I can work with different documents, to avoid having a lot of hidden geometry in the ActiveDoc. From these viewports, I only need to rotate the camera and via double click it instances that state of the model in the ActiveDoc.

What do you suggest to do this?

(I am using C# and Rhino WIP)

Thanks!

Posts: 5

Participants: 3

Read full topic

Get the new control point index which inser by ON_NubrsCurve::InsertKnot() function (c++)

$
0
0

@suc_kiet wrote:

Hi;
Is there a way to get the new control point index which inser by ON_NubrsCurve::InsertKnot() function ?


CRhinoGetObject go;
go.SetCommandPrompt(L"select curve");
go.SetGeometryFilter(CRhinoGetObject::curve_object);
go.GetObjects(1, 1);
if (go.CommandResult() != success)
{
	return nothing;
}
ON_NurbsCurve cur = * go.Object(0).Curve()->NurbsCurve()->Duplicate();
CRhinoGetPoint gp;
gp.SetCommandPrompt(L"get point on curve");
gp.Constrain(cur);
gp.GetPoint();
double t;
cur.GetClosestPoint(gp.Point(),&t);

// this function return a Boolean value, can not get the index of knot or control point
cur.InsertKnot(t, 1);  

RhinoApp().ActiveDoc()->ReplaceObject(go.Object(0), cur);
context.m_doc.Redraw();
return success;

Posts: 1

Participants: 1

Read full topic


Command.UndoRedo

$
0
0

@MatrixRatrix wrote:

I set a event dou Undo:

Command.UndoRedo += OnUndoRedo;

This event is being triggered in others command, a simple lock and unlock layer make this event trigger.

this is supposed to happen?

Thanks

Posts: 1

Participants: 1

Read full topic

Windows c# form embeds image from installed folder

$
0
0

@amitloh wrote:

How do I dynamically load image into Windows c# form from installed folder in rhino plugin

Posts: 1

Participants: 1

Read full topic

Embedded files in 3DM

$
0
0

@lucabrasi wrote:

Hi,

We are working on command to create textures, but I have a question about where is the best way to save an image in the document. Imagine that I use a bitmap on my computer and I send you the 3DM. I want the users can share the files and edit them.

I was checking and it is available a RhinoDoc.ActiveDoc.Bitmaps, but I can not attach details about the bitmap.

Another idea is to use UserData in the object, and store the bitmap in the geometry, but is not the best if you have 5 textures = 5 times the same image, but, you can Copy-Paste between documents and keep working.

What do you think is the best way?

Thanks,

Posts: 1

Participants: 1

Read full topic

RhinoVR - OpenXR?

$
0
0

@antoine wrote:

Hello,
Next release of Blender, 2,82, based on Cycles will offer a way to use any OpenXR headset fr a quick and fast render of our scene into VR.
Could we excpect an improvement made to RhinoVR or something new to make it maybe easier and optimized for latest graphic card and headset? I know that RjinoVR is only for dev only…as also many of VR products :slight_smile:

Thanks for your suggestions

Posts: 2

Participants: 2

Read full topic

Rhino eto close button

Create super-shape on a facade panel using attractor point

Get gumball custom location

$
0
0

@benoit.deschenes wrote:

Hi,

We are making a RhinoCommon exporter plugin for Rhino 5/6 and are looking for a way to access the “custom gumball location” (if present) for the exported objects.

To be clear, what I am looking for is the position + orientation ( plane ) information stored in the object when we “Relocate the Gumball”. We would like to treat this data as a “custom pivot” when exporting meshes.

From my understanding the gumball does not store any data except when relocating it as explained in this post: CRhinoSDKObject -> Getting a transform

The object’s description suggest this information may be stored in RhinoObject.Geometry.UserData:

However when trying to access the User data like this:

foreach (var CurrentUserData in MyRhinoObjectWithRelocatedGumball.Geometry.UserData)
{
   ...
}

CurrentUserData is either null or an empty SharedUserDictionary.

What would be the right way to get the data of a relocated gumball?

Thank you.

Posts: 2

Participants: 2

Read full topic


C# plugin for Rhino6 to export selected geometry to OBJ file

$
0
0

@ian4 wrote:

I’m writing a C++ plugin (for Rhino 6) to export only selected geometry to an OBJ file. (And then subsequently upload it to our clout for further processing & storage). I have a small c# plugin building and running. Just need some pointers on how to export selected objects to OBJ format.

Thanks for any hints that get me going in the right direction!

  • Ian

Posts: 2

Participants: 2

Read full topic

RhinoBooleanIntersection

$
0
0

@ceruti wrote:

I can’t understand RhinoBooleanIntersection functions: it seem the behavoir is different from boolean difference rhino command.
Can someone explain me or say me where can I find documentation about it?
Thanks

Posts: 2

Participants: 2

Read full topic

Rhino 6 handling multiple photos very poorly

$
0
0

@dcomeau wrote:

How’s it going everyone, as the title says when importing more than 10 photos rhino 6 starts preforming poorly. In my line of work I develop documentation for a factory so I use make2d diagrams and photo’s quite a bit. Rhino 5 handled everything fine but Rhino 6 seems to not do too well when more than 10 or 15 photos are placed. I noticed that these support packing files are being created, does that have something to do with it? Let me know what you guys think.

Thanks for reading

Posts: 1

Participants: 1

Read full topic

Area moments relative to cplane

$
0
0

@ruy.sevalho wrote:

Hi there,

I was wondering if it’s possible to compute area moments relative to the cplane coordinate system, not the world axis. Is there a way?

Thanks
Ruy

Posts: 1

Participants: 1

Read full topic

Create pipe with wall thickness

Viewing all 8565 articles
Browse latest View live