Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Views in DWG

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
GosponZ
353 Views, 2 Replies

Views in DWG

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

2 REPLIES 2
Message 2 of 3
Vladimir.Ananyev
in reply to: GosponZ

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
in reply to: Vladimir.Ananyev

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report