- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This may be a shot in the dark. But Here I go. 🙂
My assembly structure looks like this:
oOcc (Assembly)
- MAKEUP PLANE
oOcc2 (sub component)
- PLANE ELEVATION
- PLANE IN OUT
What I would like to do is create a point in space at the intersection of MAKEUP PLANE, PLANE ELEVATION AND PLANE IN OUT. I have tried the below to get the point.
Set oPoint = ThisApplication.TransientGeometry.CreatePoint(oWPlaneElevProxy.Plane.RootPoint.X, oWPlaneMakeup.Plane.RootPoint.Y, oWPlaneInOutProxy.Plane.RootPoint.Z)
oWPlaneElevProxy - Proxy created since it is the sub component of oOcc.
oWPlaneInOutProxy - Proxy created since it is the sub component of oOcc.
oWPlaneMakeup - no Proxy created since it is at the assembly level.
Then I tried this:
Set oPoint2d = oDrawView.ModelToSheetSpace(oPoint)
I thought I needed to add it as workfeature using the below. But since it isn't a workfeature technically and it is transient am I missing something?
Set oCenterMark = oSheet.Centermarks.AddByWorkFeature(oWPointProxy, oDrawView)
Example code I have tried:
Set oWPlaneMakeUp = GetDocWPl(oOcc.Definition.Document, "MAKEUP PLANE")
Set oWPlaneInOut = GetDocWPl(oOccMakeUp.Definition.Document, "PLANE IN OUT")
Set oWPlaneInOutProxy = GetWPlProxy(oOccMakeUp, oWPlaneInOut)
Set oWPlaneElev = GetDocWPl(oOccMakeUp.Definition.Document, "PLANE ELEVATION")
Set oWPlaneElevProxy = GetWPlProxy(oOccMakeUp, oWPlaneElev)
Set oPoint = ThisApplication.TransientGeometry.CreatePoint(oWPlaneElevProxy.Plane.RootPoint.X, oWPlaneMakeUp .Plane.RootPoint.Y, oWPlaneInOutProxy.Plane.RootPoint.Z)
Set oPoint2d = oDrawView.ModelToSheetSpace(oPoint)
Set oWPointProxy = GetWPtProxy(oOcc, oPoint)
Call oDrawView.SetIncludeStatus(oWPointProxy, True)
Call oDrawView.SetVisibility(oWPointProxy, True)
Set oCenterMark = oSheet.Centermarks.AddByWorkFeature(oWPointProxy, oDrawView)
Call oCLCol.Add(oCenterMark)
Like I said I'm not sure if this is even possible since it's not a work feature. I have only created centermarks off of workfeatures. I would like to do it using transient geometry in this case because it's not needed per say by the user on the model side.
Thanks in advance for any help.
Tiffany Hayden
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Solved! Go to Solution.