Programming dynamic blocks

Programming dynamic blocks

Anonymous
Not applicable
213 Views
1 Reply
Message 1 of 2

Programming dynamic blocks

Anonymous
Not applicable
Hi,

I'm wondering if it is feasible to define a dynamic block and insert it with
code to set the parameters.

In the simplest case I'm thinking about I would have two parallel sides
joined at each end by a 180 degree arc.

I would wish to insert the block and define the side lengths and the width
between sides - which would force the arc radius to change accordingly.

For convenience the insertion point would be the mid point of one of the
arcs.

Any comments and thoughts appreciated.
--

Regards,


Laurie Comerford
www.cadapps.com.au
0 Likes
214 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Perhaps a class would be helpful. I have built rectangle classes in the
past that contained a Draw method that took parameters for corner point,
width, and height. Other methods returned a center point, filleted corners,
etc. When the instance went out of scope, an ordinary LWPoly was left in
the drawing Your class could leave the block.
--
John Goodfellow
irtfnm
use john at goodfellowassoc dot com

..

"Laurie Comerford" wrote in message
news:4860170@discussion.autodesk.com...
Hi,

I'm wondering if it is feasible to define a dynamic block and insert it with
code to set the parameters.

In the simplest case I'm thinking about I would have two parallel sides
joined at each end by a 180 degree arc.

I would wish to insert the block and define the side lengths and the width
between sides - which would force the arc radius to change accordingly.

For convenience the insertion point would be the mid point of one of the
arcs.

Any comments and thoughts appreciated.
--

Regards,


Laurie Comerford
www.cadapps.com.au
0 Likes