Takes objects specific layers and change layer size style

Takes objects specific layers and change layer size style

cyberflow
Advisor Advisor
279 Views
2 Replies
Message 1 of 3

Takes objects specific layers and change layer size style

cyberflow
Advisor
Advisor

Hi there,

First of all i'm a bit new to the lisp language.
I'm actually doing a programming certificat at the university.
So i'm famillior to programming.
Just wanted to put you in context.

I oftenly receive drawings from an external ressource that isn't at standard with my clients.

So each time, i need to take the different elements (Polyline, text and mtext) and put them in the standard of my clients.
With the good layer, style and size.

 

Been a few years i'm thinking on this lisp and decided this morning to dig into it.

Anyone has a piece of code that changes objects size, layer, style and height to another layer and correct size, height and style ?

Il'l try to make an hybrid lisp out of the one suggested of it.

Or maybe even what i'm looking for exist's too !

Ty !

Btw, after my certificat i'm planning on to specializing into lisp programming so, sooner or later i'm gona do some lisp 🙂

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
280 Views
2 Replies
Replies (2)
Message 2 of 3

Kent1Cooper
Consultant
Consultant

You could simply Insert [pre-exploded] a little drawing that has one thing of every standard type, and use MATCHPROP to impose the characteristics of those standard elements on the non-standard ones already in the drawing.  Also look at the STANDARDS command.

Kent Cooper, AIA
0 Likes
Message 3 of 3

scot-65
Advisor
Advisor
Familiar with programming?
OK.
Do you know your DFX codes?
It will help.

Create a "Class" (vb here) where ENTMOD is the key action.

Make a call to this class with 3 attributes:
DFX to change.
The new DFX value.
The entity itself.

Place this code inside a MNL or any other auto-loading area.

Example:
(GlorifiedChProp 8 "Defpoints" (entget (car (entsel))))
Loop (WHILE..) if using the selection set method.

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes