hi everyone,
If i made a workplane include in a drawingdocument with api, then it will display in the view as a center line.
I want add some note to the Center line,but i didn't know hao to select it with api,
Is there have the API function to do this work?
Solved! Go to Solution.
Solved by MartinBernat. Go to Solution.
Hi,
you can access the included workplane (projected as a line) as a regular centerline. Following code should work:
Sub CenterlineTest()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oCenterLine As Centerline
Set oCenterLine = oDoc.Sheets(1).Centerlines(1)
' Do whatever with the centerline
oCenterLine.Visible = False
End Sub
Thanks for your post,
Martin Bernat
Autodesk
Thanks very much.
It is work perfectly.
But if i project a lot of workplane as centerline,
and I only particularly concern one or two of them
Can I select the centerline from the DrawingDocument's Model Browser?