Highlighting Edges from a Wire Object

Highlighting Edges from a Wire Object

Anonymous
Not applicable
438 Views
1 Reply
Message 1 of 2

Highlighting Edges from a Wire Object

Anonymous
Not applicable

Hello, 

 

I am attempting to mess around with Wire objects in the API to get a sense of what they do, as the documentation on them seems kind of slim.

 

I am getting an "HRESULT: 0x80070057 (E_INVALIDARG))" error when I am attempting to highlight the edges found within an Wire object. Can anyone tell me where the issue lies? Below is a subset of my code. I follow the typical naming conventions found in the Inventor VBA/C# samples, and oHSet is my HighlightSet object:

 

            Wires oWires;
            oWires = oCompDef.Features.ExtrudeFeatures[2].Profile.Wires;  
            foreach (Wire oWire in oWires)
            {
                foreach (Edge oEdge in oWire.Edges)
                    oHSet.AddItem(oEdge);
            }

 

I can count the Wires (there are 4), get the actual Edge objects and their type, however I cannot highlight them. Is there a reason for this? Any clarification would be great, as the API documentation on them is non-existent (a blank page comes up).

 

Thanks for any help,

 

Philip

439 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

How about I just ask a simpler question. Where can I find any information at all on Wire objects, aside from the brief sentence in the API?

 

Something more than: "A Wire object represents a set of 3D curves. They are used in several different areas within the Inventor API. The bend and fold lines on the 3D flattened model of a sheet metal part are returned as a Wire object. It is also used to define 3D curves that are used as input when using some of the functions to create transient B-Rep bodies.

 

The documentation on certain topics is very very lacking.

 

Thanks,

 

Philip

0 Likes