- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I hope you can help me.
I have this iLogic code
'Set a reference to the active drawing document
Dim oDoc As DrawingDocument
oDoc = ThisDoc.Document
Dim oSheets As Sheets
Dim oSheet As Sheet
Dim oViews As DrawingViews
Dim oView As DrawingView
oSheets = oDoc.Sheets
oSheet = oDoc.ActiveSheet
For Each oSheet In oSheets
oViews = oSheet.DrawingViews
For Each oView In oViews
Dim oCenterline As AutomatedCenterlineSettings
oView.GetAutomatedCenterlineSettings(oCenterline)
oCenterline.ProjectionParallelAxis = True
oView.SetAutomatedCenterlineSettings(oCenterline)
Dim resultCenters As ObjectsEnumerator
resultCenters = oView.SetAutomatedCenterlineSettings(oCenterline)
Next
Next
I have this plate, please see attachment picture
Where I want a centerline, vertical and horizontal (the red lines) to illustrate what I mean
I can not get the code to work, so I hope I can get help from you.
Yours sincerely
Steffen
Solved! Go to Solution.