iLogic - Is it possible to change drawing detail fence shape from square to circle?

iLogic - Is it possible to change drawing detail fence shape from square to circle?

Eide.N
Advocate Advocate
603 Views
2 Replies
Message 1 of 3

iLogic - Is it possible to change drawing detail fence shape from square to circle?

Eide.N
Advocate
Advocate

We had an engineer that made all of his detail views with squares, but our standard is circles. We have been tasked with changing them to circles to conform to our standard.

 

I couldn't find any way to do this through the UI, so I'm hoping someone knows of a way to do this via iLogic!

 

Any help would be appreciated.

0 Likes
Accepted solutions (1)
604 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor
Accepted solution

I don't think it is possible to do as an edit.  I think you would have to collect as much data as possible about the existing detail views and their 'fences', then recreate the detail views.

The "CircularFence" Boolean property of a "DetailDrawingView object is a 'Read Only' property.

And the FenceCornerOne & FenceCornerTwo properties (Point2D objects) can't be set if the CircularFence property is True.

Here's some quickie code that shows you what data is available and readable/writable for the DetailDrawingVeiw.

Dim oView As DetailDrawingView = ThisDrawing.Document.ActiveSheet.DrawingViews.Item(1)
'AttachPoint can be Nothing and can be set to Nothing later
Dim oAttachPoint As GeometryIntent = oView.AttachPoint
'oCenter can't be set, if it is already attached to something (oAttachPoint returns an object)
Dim oCenter As Point2d = oView.FenceCenter

'Get & Set
Dim oBLayer As Layer = oView.BoundaryLayer

'Read Only property
Dim oCircular As Boolean = oView.CircularFence

Dim oRadius As Double
If oCircular = True Then
	oRadius = oView.FenceRadius
Else
	'oC1 will be Nothing and can't be set if oCircular = True
	Dim oC1 As Point2d = oView.FenceCornerOne
	Dim oC2 As Point2d = oView.FenceCornerTwo
End If

'Get or Set
Dim oSmooth As Boolean = oView.IsBreakLineSmooth

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

Eide.N
Advocate
Advocate

Oh well, you can't always get what you want!  ¯\_(ツ)_/¯ Now on to cranking it out manualy.

 

@WCrihfield  Thanks for your help and quick reply! 

 

 

0 Likes