Closed

AutoCAD MEP Lisp Routines

Hello everyone,

I am using AutoCAD MEP 2008, and I need two small lisp routines and a macro.

## Deliverables

Hello everyone,

I am using AutoCAD MEP 2008, and I need two small lisp routines and a macro.

The first lisp routine: this lisp routine is maybe 60% complete; I have 3 routines, which I would like to combine to achieve what I need. I can supply these lisp routines, or you can write it from scratch, but I think I have a lot of it already done, and it is just missing the right person to put it together.

1st? lisp: will display all xrefs in a drawing.

2nd lisp: ? you can select an xref, the color box will appear and you can change the layer color of all its layers.

3rd? lisp: a dialog box will appear listing all blocks, and you can select one and press “ok??.

When the command is typed, a dialog box will appear listing only the mother xrefs in that drawing. I need to be able to select one mother xref or all the listed mother xrefs, press “ok??, and then the color box will appear so I can select a color, the chosen color will change the layer color of all selected mother xrefs.

Mother Xrefs:? are the actual xrefs that are xrefed into a drawing.

Example: If I have drawing Z, and I have xref X and xref Y xrefed into drawing Z.

If xref X has xrefs A and B nested in it, the result in the list box will show only xref X and xref Y.

This command will work as follow: when the command is typed, a dialog box will appear listing all mother xrefs, I will select one, or all ??" this can be achieved by being able to select them, or having radio buttons or check box beside each listed mother xref ??" after selecting, I press “ok??, the color box will appear, I select the color and press “ok??, once this is done, all the layers within the mother xref will change to the chosen color.

Example: if xref X is selected, and color 250 was chosen; all the layers within xref X - including xref A and xref B that are nested in xref X - will change to color 250.

The second lisp routine: this command will ask to select objects - I need to be able to select one object or multiple objects, when I select my objects, it will make sure everything is on elevation 0, if not, it will put it on elevation 0, and then it will convert the objects to schematic lines (SLineconvert).

SLineconvert is the command that converts lines and / or plines to schematic lines, This lisp will need to take into consideration that the slineconvert command asks if I would like to "erase layout geometry", and this needs to be auto set to yes.

This command will work as follow: I will type the command, it will ask to select objects, I will select the objects (which will be lines and / or plines), it will check to see if everything on elevation 0, if not, it will put everything on elevation 0, and it will then convert these objects to schematic lines and erase the layout geometry ??" without asking any questions on the command bar ??"

The macro: this macro will insert a specific block from a specific drawing, and multiply this block by the “annotation plot size??.

I would like this macro to work as follow: I will create a new button on my toolbar and the macro will be used for this new button, when I press this new button, the specific block will be inserted automatically multiplied by the annotation plot size - without any questions on the command bar ??"

I have a few other lisp routines that need to be put together, but I will try these first and then I will post the other work that needs to get done.?

Thank you.

Skills: CAD/CAM, Engineering, MySQL, PHP, Software Architecture, Software Testing

See more: autocad mep lisp, lisp mep, autocad nested xref lisp, lisp autocad mep, selecting mep objects lisp, mep drawing lisp, autocad mep lisp routines, mep lisp, work in autocad, using geometry, lines of geometry, lines in geometry, lines geometry, get lisp, geometry lines, geometry and lines, engineering drawing i, elevation engineering, elevation drawing, mep work, display color x as color x, convert this drawing to, c# autocad, autocad, autocad work

About the Employer:
( 0 reviews ) Canada

Project ID: #3848700