Message 1 of 6
Not applicable
01-25-2019
01:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
i have a simple application that runs as an add-in in Inventor, that i use to change the visibility of several parts in an assembly document.
it changes the visibility of all the selected parts and components.
its code is like this:
SelectSet selSet = default(SelectSet);
selSet = asmDoc.SelectSet;
try
{
ComponentOccurrence compOcc = default(ComponentOccurrence);
object obj = null;
foreach (object obj_loopVariable in selSet)
{
obj = obj_loopVariable;
compOcc = (ComponentOccurrence)obj;
System.Diagnostics.Debug.Print(compOcc.Name);
compOcc.Visible = !compOcc.Visible;
//add costum iproperties for each selected component
}
}
catch (Exception ex)
{
return;
}
i would like to add a costume i properties to each component, can anybody suggest me how to do that?
Solved! Go to Solution.
