Jump to content

Recommended Posts

  • Replies 37
  • Created
  • Last Reply

Top Posters In This Topic

  • nmareis

    18

  • MSasu

    16

  • SLW210

    2

  • Tuns

    2

Popular Days

Top Posters In This Topic

Posted

sorry i will go to read the article...thanks

Posted
(defun c:clc()
(vla-put-color (vlax-ename->vla-object (tblobjname "LAYER" "RAMAISmdm")) 75) 
(vla-put-color (vlax-ename->vla-object (tblobjname "LAYER" "G_EM_CONSTRUCAO")) 75) 
(vla-put-color (vlax-ename->vla-object (tblobjname "LAYER" "C_ARRUAMENTOS")) 75)
(vla-put-color (vlax-ename->vla-object (tblobjname "LAYER" "001_14_C_AUX_ALTERADO_NOVO")) 75)
(vla-put-color (vlax-ename->vla-object (tblobjname "LAYER" "C_AUX_ALTERADO_NOVO")) 75)
(vla-put-color (vlax-ename->vla-object (tblobjname "LAYER" "C_EDIFICACOES")) 75)
(vla-put-color (vlax-ename->vla-object (tblobjname "LAYER" "C_EDIFICACOES_PUBLICAS")) 75)
(vla-put-color (vlax-ename->vla-object (tblobjname "LAYER" "C_N_POLICIA")) 75)
(vla-put-color (vlax-ename->vla-object (tblobjname "LAYER" "C_TERRENOS")) 75)
(vla-put-color (vlax-ename->vla-object (tblobjname "LAYER" "C_TOPONIMIA")) 75)
(vla-put-color (vlax-ename->vla-object (tblobjname "LAYER" "CROQUIS_MOLD500")) 75)
(vla-put-color (vlax-ename->vla-object (tblobjname "LAYER" "MARGEM")) 75)
(vla-put-color (vlax-ename->vla-object (tblobjname "LAYER" "MOLD500")) 75)
(princ)
)

Posted

Are all those layers available in your drawing? Maybe is better to add a validation before attempting to adjust the colors:

(defun c:clc()
(if (setq layerTemp (tblobjname "LAYER" "RAMAISmdm"))
 (vla-put-color (vlax-ename->vla-object layerTemp) 75))
(if (setq layerTemp (tblobjname "LAYER" "G_EM_CONSTRUCAO"))
 (vla-put-color (vlax-ename->vla-object layerTemp) 75))
...
(princ)
)

By the way, I used the color 75 as example, you should adjust it to suit your standard.

Posted

Thanks unable to resolve this situation now ... now I'm looking for a lisp to change various sizes of text in a drawing for one clearcut size for me.

you know of any? ..

 

Thank you.

Posted

Please let me know if the above suggestion worked after will be able to test it.

 

looking for a lisp to change various sizes of text in a drawing for one clearcut size for me.

Not sure that understand; isn't enough to call QSELECT command, select all text entities and adjust their height in Properties?

Posted

lol you're right ... I had not remembered me .. thanks:)

Posted

true .. working with very large files ... is there any script to clear all existing garbage in the drawing? .. or is it better to just do the purge?

Posted

It really depends what you mean by "existing garbage". The purge will get rid of unused entities. May also worth to take a look to OVERKILL command (from Express pack).

Posted

overkill the design destroys anything? ... or just clean what's more?

Posted

It deal with duplicate and/or overlapped entities; please check in Express help for details.

Posted

I personally don't like overkill because it has done some strange things to my drawings. Though it's rare that it really messes something up, it still happens. I'd just stick with purge if I were you. I use a macro to purge so all I have to do is click the button and it's done. This is the macro I use:

^C^C-purge;all;*;n;save;

Posted

May I suggest to call purge more than once to get rid of nested objects, too?

^C^C-purge;all;*;n;-purge;all;*;n;-purge;all;*;n;save;

 

I'm not aware of OVERKILL causing issues, but don't forget that its effect is different than PURGE's one.

Posted
I'm not aware of OVERKILL causing issues, but don't forget that its effect is different than PURGE's one.

The only problem OVERKILL caused for me was it would combine some of the lines into PLINES, it would change some of the lines to different angles or change the linetype. It happened fairly rarely, but it was still an inconvenience.

Posted
The only problem OVERKILL caused for me was it would combine some of the lines into PLINES, it would change some of the lines to different angles or change the linetype. It happened fairly rarely, but it was still an inconvenience.

 

 

 

There are options with OVERKILL that can be selected/deselected.

Posted

dear moderator ... one doubt .. I have several layers that end up in the same way .. kind .. c_AUX_ALTERADO_NOVO ... only changes the start ... is there any way to give a command and ask for them to change only one layer? thank you ..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...