Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Edit Polyline Property in VBA

0 REPLIES 0
Reply
Message 1 of 1
Syrus1356
547 Views, 0 Replies

Edit Polyline Property in VBA

Hi
I have Several thousand Polyline
i define an Table named CODENOS and a field name ID typed character(From Map menu and select object data)
i want to select some of them and copy one property value to other like this

Sub test()
Dim SelOnScreen As AcadSelectionSet

Set SelOnScreen = ThisDrawing.SelectionSets.Add("b")

SelOnScreen.SelectOnScreen 'propmt user to select
' after selection, user must press Enter

For Each Item In SelOnScreen
If TypeOf Item Is AcadLWPolyline Then
Item.hyperlink.clear

------------------------------------------------------------------------------------------------------------------------------------------------------
Item.hyperlink.textToshow.value = Item.CODENOS.ID // pleaz write me a VBA code to do this
------------------------------------------------------------------------------------------------------------------------------------------------------

End If
Next

SelOnScreen.Delete

End Sub

pleaz write me a VBA code to do this
0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report