TheSwamp
Code Red => .NET => Topic started by: www1970 on July 24, 2006, 11:12:42 PM
-
userblock property how to link with AutoCAD property window
autocad provide some tools to create define block ,for instance :
civil engineering have a limit speed symbol, under picture.
in autocad property window, its property can be changed,how to create a so block and how to link it to CAD property window. sorry ,the text inside is chinese, donot pay attention to it
-
sorry! supplement a point:
dawing block style can change according to property value
-
Are you running version 2007?
Perhaps dynamic blocks could prove an ideal solution.
-
I believe '1970 is using dynamic blocks. ... see the blue triangle ?
-
I keep the properties window open and docked always, this would make it easier for you. then you could insert it and select.
I did this really quickly in vba and it seems to work.Public booBlkIns As Boolean
Private Sub AcadDocument_EndCommand(ByVal CommandName As String)
If Right(CommandName, 6) Like "INSERT" Then
ThisDrawing.SendCommand ".pselect l ddchprop" & vbCr
booBlkIns = False
End If
End Sub
Private Sub AcadDocument_ObjectAdded(ByVal Object As Object)
If TypeOf Object Is AcadBlockReference Then
booBlkIns = True
Else
booBlkIns = False
End If
End Sub
Standard disclaimer:
I couldn't code my way out of a wet paper bag, nor do I try very hard to do so so use at your own risk. If it blows up and destroys your drawing, computer, car, girlfriend, etc., you have my sympathy but I will not in any way take responsibility for it happening.
-
If it blows up and destroys your drawing, computer, car, girlfriend, etc., you have my sympathy but I will not in any way take responsibility for it happening.
But you want to know about it if it does so you can sell it on the internet to people named Guido that do that sorta thing for big bucks no whammys.
-
I'm not sure bob, but the op may/maynot be after a code solution which may/maynot be .NET.
-
I'm guessing by the forum that it's likely but since the op was .not getting anything in .net and I maynot/maynot be able to provide a .net solution anyway, I would provide a VBA solution for what I THINK the op was after thinking that the op may/maynot be satisfied with the solution or possibly that it may/maynot start the ball rolling among those who may/maynot be able to provide .netular helpage.
that was a fun post to type
-
.netular helpage...I think I'll use that :D
-
it ought is dynamic blocks, I havenot study this kind entity, thanks every's remind.
the primary problem is how to link the proporty of dynamic blocks with ACAD proporty windows, include set the proporty item, et.