Discussion Groups

All Discussion Groups » AutoCAD 2007

Thread: Dynamic Block Tutorial


Permlink Replies: 5 - Last Post: May 4, 2009 10:49 PM Last Post By: Rudy Beuc
Rudy Beuc
Dynamic Block Tutorial
Posted: Apr 21, 2009 7:08 PM
  Click to reply to this thread Reply
Does anyone have a good tutorial on dynamic blocks? I've been able to
reverse engineer some of the samples and have been able to understand a bit,
but now I've hit a wall.

I'm trying to do a window elevation block where the mullion pattern has 3
even lites until it's streched to a certian point and then it get 4 even
lites.

Appearantly to do this I need to like an action property with a lookup
property and ... well, then an array? I don't know.

Any ideas?


Thanks,
Rudy Beuc
patrick1256

Posts: 200
Registered: 02/27/09
Re: Dynamic Block Tutorial
Posted: Apr 22, 2009 12:09 AM   in response to: Rudy Beuc in response to: Rudy Beuc
  Click to reply to this thread Reply
you may want to post this in the dynamic block discussion group.

Patrick K. Johnson
http://www.cadenhancement.com
http://www.cadenhancement.com/labels/FAR.html
mixtup

Posts: 470
Registered: 09/04/07
Re: Dynamic Block Tutorial
Posted: Apr 26, 2009 12:43 AM   in response to: Rudy Beuc in response to: Rudy Beuc
  Click to reply to this thread Reply
Rudy, there are a few ways of achieving this. If you can post a file containing the window and include the information, ie how far the mullions can space before adding another and a list of your standard window sizes, i'd be happy to have a go at it. Hopefully you can then pick it apart to see how it's been done.
Rudy Beuc
Re: Dynamic Block Tutorial
Posted: Apr 30, 2009 12:54 PM   in response to: mixtup in response to: mixtup
  Click to reply to this thread Reply
Attachment Window Elevation.dwg (387.2 KB)
Attachment Unit Sizes.jpg (188.5 KB)


Ok here they are.

 

 

I've had someone suggest that I use reactors or do something with .net. My
preference is to deal with this completely within the block editor. The idea
being that the block could then be easily inserted into any drawing file.

 

If you could, please explain what you've done.

 

 

Thanks,

Rudy Beuc


<mixtup> wrote in message news:6170504@discussion.autodesk.com...
Rudy,
there are a few ways of achieving this. If you can post a file containing the
window and include the information, ie how far the mullions can space before
adding another and a list of your standard window sizes, i'd be happy to have
a go at it. Hopefully you can then pick it apart to see how it's been
done.

mixtup

Posts: 470
Registered: 09/04/07
Re: Dynamic Block Tutorial
Posted: May 2, 2009 9:19 AM   in response to: Rudy Beuc in response to: Rudy Beuc
  Click to reply to this thread Reply
Sorry that i've created it in metric but the conversions would have driven me nuts.
This is one way of doing it. I think you could have the muntins come in as you stretch with an array action but i prefer this way. You can adjust the height and width of the window using the arrow grips, there is another set of grips to adjust the shutters and the visibility grip lets you choose the muntin divisions.
I could probably write a short novel explaining what i've done, but basically i created 6 separate "visibility states" for each different muntin pattern. In the block editor, in the top right corner are the visibility tools with a pulldown that lets you scroll through (and edit) each visibility state.
Then it's just a matter of assigning a linear parameter to the window, one for the width and one for the height. You add a stretch action to each of those, one to the horizontal transom and another for each muntin (vertical and horizontal).
Here's the trick. When you have assigned the one to the transom, click on it's action label and check it's properties. Scroll down to Overrides and change the 'Distance Multiplier' to .5 (this moves the transom half of the distance that the block is stretched to keep it central.
The same principle applies to the muntins but you are dividing the window into quarters or even 6ths so the distance multiplier needs to reflect that.
If your window is divided into four sections, only vertically, then you would input .25 for the muntin closest to the left, .5 for the center and .75 for the muntin on the right. Each muntin has it's own stretch action label but all actions are applied to the one Linear Parameter for the width of the window. If that makes any sense then you can break down what i've done.
Some tips- in the BE, clicking on an existing action will highlight the linework that is associated with it.
Use regen when the BE gets untidy as well as if the block messes up in model space.
Check the properties of parameters and actions in the BE and play around to see what can be controlled from there.
Here is a link to some useful whitepapers on Dynamic Blocks http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=12519044
You can refine it a lot more by having it stretch in certain increments or listing exact sizes etc, but that info is in the link.
If there is anything in particular thats unclear just ask.
Cheers
Rudy Beuc
Re: Dynamic Block Tutorial
Posted: May 4, 2009 10:49 PM   in response to: mixtup in response to: mixtup
  Click to reply to this thread Reply


Thanks fior all of th information and the solution.

 

I will be preusing it all thru the next week as time allows.

 

Thanks Agian,

Rudy Beuc


<mixtup> wrote in message news:6175435@discussion.autodesk.com...
Sorry
that i've created it in metric but the conversions would have driven me nuts.
This is one way of doing it. I think you could have the muntins come in as you
stretch with an array action but i prefer this way. You can adjust the height
and width of the window using the arrow grips, there is another set of grips
to adjust the shutters and the visibility grip lets you choose the muntin
divisions. I could probably write a short novel explaining what i've done, but
basically i created 6 separate "visibility states" for each different muntin
pattern. In the block editor, in the top right corner are the visibility tools
with a pulldown that lets you scroll through (and edit) each visibility state.
Then it's just a matter of assigning a linear parameter to the window, one for
the width and one for the height. You add a stretch action to each of those,
one to the horizontal transom and another for each muntin (vertical and
horizontal). Here's the trick. When you have assigned the one to the transom,
click on it's action label and check it's properties. Scroll down to Overrides
and change the 'Distance Multiplier' to .5 (this moves the transom half of the
distance that the block is stretched to keep it central. The same principle
applies to the muntins but you are dividing the window into quarters or even
6ths so the distance multiplier needs to reflect that. If your window is
divided into four sections, only vertically, then you would input .25 for the
muntin closest to the left, .5 for the center and .75 for the muntin on the
right. Each muntin has it's own stretch action label but all actions are
applied to the one Linear Parameter for the width of the window. If that makes
any sense then you can break down what i've done. Some tips- in the BE,
clicking on an existing action will highlight the linework that is associated
with it. Use regen when the BE gets untidy as well as if the block messes up
in model space. Check the properties of parameters and actions in the BE and
play around to see what can be controlled from there. Here is a link to some
useful whitepapers on Dynamic Blocks
http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=12519044 You
can refine it a lot more by having it stretch in certain increments or listing
exact sizes etc, but that info is in the link. If there is anything in
particular thats unclear just ask. Cheers