Author Topic: userblock property how to link with AutoCAD property window  (Read 2655 times)

0 Members and 1 Guest are viewing this topic.

www1970

  • Guest
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

www1970

  • Guest
Re: userblock property how to link with AutoCAD property window
« Reply #1 on: July 24, 2006, 11:15:09 PM »
sorry! supplement a point:
dawing block style can change according to property value

Atook

  • Swamp Rat
  • Posts: 942
Re: userblock property how to link with AutoCAD property window
« Reply #2 on: July 25, 2006, 03:28:54 PM »
Are you running version 2007?

Perhaps dynamic blocks could prove an ideal solution.


Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: userblock property how to link with AutoCAD property window
« Reply #3 on: July 25, 2006, 04:14:53 PM »
I believe '1970 is using dynamic blocks. ... see the blue triangle ?
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

Bob Wahr

  • Guest
Re: userblock property how to link with AutoCAD property window
« Reply #4 on: July 25, 2006, 05:22:15 PM »
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.
Code: [Select]
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.
« Last Edit: July 25, 2006, 05:29:23 PM by Bob Wahr »

Maverick®

  • Seagull
  • Posts: 14777
Re: userblock property how to link with AutoCAD property window
« Reply #5 on: July 25, 2006, 05:37:03 PM »
  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.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: userblock property how to link with AutoCAD property window
« Reply #6 on: July 25, 2006, 05:42:40 PM »
I'm not sure bob, but the op may/maynot be after a code solution which may/maynot be .NET.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

Bob Wahr

  • Guest
Re: userblock property how to link with AutoCAD property window
« Reply #7 on: July 25, 2006, 05:50:12 PM »
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

MickD

  • Gator
  • Posts: 3314
  • (x-in)->[process]->(y-out)
Re: userblock property how to link with AutoCAD property window
« Reply #8 on: July 25, 2006, 06:16:13 PM »
.netular helpage...I think I'll use that :D
Forth is like the Tao: it is a Way, and is realized when followed.
Its fragility is its strength; its simplicity is its direction - Michael Ham

Lao Tzu: “To attain knowledge, add things
every day; to obtain wisdom, remove things every day.”

www1970

  • Guest
Re: userblock property how to link with AutoCAD property window
« Reply #9 on: July 25, 2006, 10:42:13 PM »
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.