Views in DWG

Views in DWG

GosponZ
Collaborator Collaborator
446 Views
2 Replies
Message 1 of 3

Views in DWG

GosponZ
Collaborator
Collaborator

Every time i made dwg's i have to create all ort. views but i also need place label for each view. Is it possible with rule to pick view and then choose from list which view label it is. For ex. plan,side lt, side rt isometric etc..

Thank you

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

Vladimir.Ananyev
Alumni
Alumni
Accepted solution

Try this rule. Not very convenient but works.

Dim oList As String() = {"AAA","BBB","CCC"}
Dim LabelName As String = InputListBox( _
		"Select Label Name and then Pick Drawing View", _
		oList, "", Title := "Label Names")
If LabelName <> "" Then		
	' Get a drawing view selection from the user
	Dim oObject As Object
	oObject = ThisApplication.CommandManager.Pick( _
		SelectionFilterEnum.kDrawingViewFilter, "Pick a feature")
	
	Dim oView As DrawingView = oObject
	oView.ShowLabel = True
	oView.Label.FormattedText = LabelName
End If
Beep

 cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Message 3 of 3

GosponZ
Collaborator
Collaborator

Yes, it works thanks alot Mr. Vladimir Smiley Very Happy

0 Likes