Author Topic: Dynamic Block  (Read 11470 times)

0 Members and 1 Guest are viewing this topic.

ronjonp

  • Needs a day job
  • Posts: 7531
Dynamic Block
« on: October 28, 2005, 10:17:10 AM »
OK....so I'm diving into dynamic blocks. I can't get the attribute on the right to move with a stretch command. Does anyone know if this is a limitation? If so, any workarounds?



This is my command line history:

Code: [Select]
Command:  EXECUTETOOL
Command: _BActionTool Move
Select parameter:
Specify parameter point to associate with action or enter [sTart point/Second
point] <Second>: end
of
Specify selection set for action
Select objects: Specify opposite corner: 1 found

Select objects: 1 found, 2 total

Select objects:
1 unlocked AttDef filtered from selection.

Specify action location or [Multiplier/Offset]:

Thanks,

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Sdoman

  • Guest
Re: Dynamic Block
« Reply #1 on: October 28, 2005, 12:50:03 PM »
Quote

Select objects: 1 found, 2 total

Select objects:
1 unlocked AttDef filtered from selection.


Ron,

Contrary to the way AutoCAD describes the Attribute property, you need to "lock" it in order to make it move!  AutoCAD will filter out unlocked attributes from an Action set.

Grip the attribute and change its property to lock via the properties dialogue thingy.

HTH

Sdoman

  • Guest
Re: Dynamic Block
« Reply #2 on: October 28, 2005, 03:21:48 PM »

Just in case my previous reply wasn't clear:

From the Block Editor, grip select the attribute that you want to move (shown at the lower left in the pic you posted).  Now from the properties dialogue, change the "Lock postion" property to "Yes".

Then either create a new move action, or double click an existing one.  Select the attribute and hit enter.  Save and exit.  [Hope I got that right, I am ad-libbing from memory]

Does that work for you?

ronjonp

  • Needs a day job
  • Posts: 7531
Re: Dynamic Block
« Reply #3 on: October 28, 2005, 04:06:02 PM »
Sorry I didn't get back sooner. That worked perfectly.

Thanks,

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

ronjonp

  • Needs a day job
  • Posts: 7531
Re: Dynamic Block
« Reply #4 on: November 01, 2005, 05:32:30 PM »
So I have another question (imagine that) :). I'm trying to make the leader attached to this block have a rotation, stretch, and move property around the center point of the circle with one grip at the end of the leader. This is what I have now.



When I stretch the leader, all of the dynamic points I have stacked go everywhere and the tai end of the leader will not follow the outside of the circle.....basically I'm way off.

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Sdoman

  • Guest
Re: Dynamic Block
« Reply #5 on: November 01, 2005, 05:40:36 PM »
So I have another question (imagine that) :). I'm trying to make the leader attached to this block have a rotation, stretch, and move property around the center point of the circle with one grip at the end of the leader. This is what I have now.

When I stretch the leader, all of the dynamic points I have stacked go everywhere and the tail end of the leader will not follow the outside of the circle.....basically I'm way off.

If you want the butt end of the leader to always point to the center of the circle, and the pointed end of the leader to have a grip, then use a polar paramater with a stretch action where you have Distance1.  Not sure what you are doing Ron with the move action.  Need more info please.

-Steve

Sdoman

  • Guest
Re: Dynamic Block
« Reply #6 on: November 01, 2005, 05:44:30 PM »
If I new how to attached a drawing file, I'd post a sample....

ronjonp

  • Needs a day job
  • Posts: 7531
Re: Dynamic Block
« Reply #7 on: November 01, 2005, 05:53:55 PM »
post the example here:

http://www.theswamp.org/screens/index.php?subdir=ronjonp&sortby=name

Just use your user name and password.

Thanks,

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Sdoman

  • Guest
Re: Dynamic Block
« Reply #8 on: November 01, 2005, 05:58:30 PM »
Ron,

Check out DynamicBallonTest.dwg at the link you provided.  If that isn't what you are trying to do, then let me know.  I've got to log off and won't be back for awhile...

whdjr

  • Guest
Re: Dynamic Block
« Reply #9 on: November 01, 2005, 06:10:09 PM »
Dude!!!!!!!!!,

I thought I had done some nifty things with dynamic blocks but My works doesn't compare.

Any idea how to count the number of blocks the array parameter creates?

See the thread here

Thanks,

ronjonp

  • Needs a day job
  • Posts: 7531
Re: Dynamic Block
« Reply #10 on: November 01, 2005, 06:39:51 PM »
Sdoman,

Thanks for the help. For some reason my Polar Stretch Parameter Set puts in a stretch and not polar PI$$ me OFF!!!

That's what was throwin me a loopy.

Thanks.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Sdoman

  • Guest
Re: Dynamic Block
« Reply #11 on: November 02, 2005, 09:55:51 AM »
Ron,

Glad you got your block going.  I haven't had much success using the Parameter Sets.  Seems easy enough just to drag a parameter and action from the palette.  Lately, I don't use the palette at all, just use the block editor toolbar.

Will,

I read the thread you posted a link too, and downloaded your locker drawing.  I have an idea how to get the number of lockers, but can't play with that right now.  Got to go to work.  I'll post back later today (hopefully).  BTW, how'd you attach your drawing to your post?  I don't know how to do that.

-Steve


ronjonp

  • Needs a day job
  • Posts: 7531
Re: Dynamic Block
« Reply #12 on: November 02, 2005, 10:45:35 AM »
Is this what you are looking for Will?

http://www.theswamp.org/screens/ronjonp/locker.swf

Here is the DWG:
http://www.theswamp.org/screens/ronjonp/LOCKER.dwg

I used a combination of dynamic lookup properties and fields.

Ron

« Last Edit: November 02, 2005, 11:00:07 AM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

whdjr

  • Guest
Re: Dynamic Block
« Reply #13 on: November 02, 2005, 01:59:07 PM »
Ron,

Thanks man that was awesome.  Cool combination.
I have 2 questions:
1.  The field updates with the lookup property but only after I do a regen.  Any ideas on making it truely dynamic?

2.  How do you make those cool swf files? :-)

Thanks for your help,

 :-) :-)

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Dynamic Block
« Reply #14 on: November 02, 2005, 02:01:32 PM »
Camtasia. It's pretty easy to use.

/guess
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst