- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm struggling to find the right object to use for setting a 3d view to a half-section view through the origin XY plane. Does anyone have advice for how to achieve? Coding in C#, but any VB.net sample could would help a bunch!
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
From the API help see link for the DesignViewRepresentation object.
Syntax
DesignViewRepresentation.SetSectionView( SectionViewType As SectionViewTypeEnum, [FirstSectionPlane] As Variant, [SecondSectionPlane] As Variant )
Or if this helped you, please, click (like)
Regards
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Thanks, this helped a lot. Now I am struggling to find a reference to the XY plane of the origin. Ive tried using WorkPlanes, but this seems to only include user-defined workplanes.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @ktucker86UDQ. Just so you are aware, the first 3 WorkPlanes, and the first 3 WorkAxes, and the first 1 WorkPoint in every model type document (parts & assemblies) are the ones that belong to the origin of that model. They will be in the same order as you see them in the model tree. The ones after that will be user defined ones. There is a property you can check too (IsCoordinateSystemElement).
Wesley Crihfield
(Not an Autodesk Employee)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Unfortunately, I am getting errors when I try to do a half section view across workplanes using the following code snippet:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Resolved! I needed to put plane.Plane to grab the Plane object from the WorkPlane object.