Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am loading the step file as a imported component in part environment by using c# API
But I want to rotate the part from Y up to Z up direction (Mentioned in attached images)
Can anybody have the solution for this?
here is the code snap for above
PartDocument pDoc = _pDoc as PartDocument;
PartComponentDefinition oPartCompDef = pDoc.ComponentDefinition;
ImportedGenericComponentDefinition impPart = (ImportedGenericComponentDefinition)oPartCompDef.ReferenceComponents.ImportedComponents.CreateDefinition(stepdownload);
impPart.ReferenceModel = true;
impPart.IncludeAll();
oPartCompDef.ReferenceComponents.ImportedComponents.Add((ImportedComponentDefinition)impPart);
Solved! Go to Solution.