CAD Forums > CAD General

Drawing polyline from the block

(1/3) > >>

antistar:
Hi to all,
I ask a great help to teachers.
I have a block with 4 tags for length, thickness, elevation and width.
Could anyone help me write a routine to capture the data from these tags and draw the closed polyline + 2 internal lines, parallel to the block?
It would be possible to change the dimensions of the drawing whenever I change a tag?

Block Name: ID_DATA
Tags: LEN, THI, ELE and WID.

Thanks in advance.

Lee Mac:
The creation of the Polyline based on the block attribute information could certainly be achieved, (this function will help you in that respect); however, the automatic updating of the Polyline dimensions based on the attribute information would be rather complicated, likely requiring the use of reactors.

antistar:

--- Quote from: Lee Mac on April 23, 2012, 07:18:30 am ---The creation of the Polyline based on the block attribute information could certainly be achieved, (this function will help you in that respect); however, the automatic updating of the Polyline dimensions based on the attribute information would be rather complicated, likely requiring the use of reactors.

--- End quote ---

Ok Lee,
 Thank you for your attention and explanation.
 I understand the complexity of using reactors. The reactors will leave to another step.
 Could you help me create a polyline with the attribute information?

Lee Mac:

--- Quote from: antistar on April 23, 2012, 07:31:08 am ---Could you help me create a polyline with the attribute information?
--- End quote ---

Post the code that you have started and I'll offer hints and tips  :-)

antistar:

--- Quote from: Lee Mac on April 23, 2012, 07:35:01 am ---
--- Quote from: antistar on April 23, 2012, 07:31:08 am ---Could you help me create a polyline with the attribute information?
--- End quote ---

Post the code that you have started and I'll offer hints and tips  :-)

--- End quote ---

Applying his subroutine LM: GetAttributes, I got the following list:

 ((LEN. 140) (THI. 120) (ELE. 100) (WID. 14))

Navigation

[0] Message Index

[#] Next page

Go to full version