• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

macro vba to isolate one or more objects

  • Thread starter Thread starter Shape
  • Start date Start date

Shape

Guest
as object allego macro (isola_object.dvb) that serves to hide (disable layer) of all objects to accezzione of the selected ones creating temporary layers for displaying/modifying objects.

Once the operations with the restore_layer the objects will be repositioned on the original layers and the complete design will be revised.

as usual to load the macro
project->isola_objects.dvb

to isolate one or more tools->macro->macro->isola_objects.dvb!modulo1.isola_objects

to restore visualization and layer tools->macro->macro->isola_object.dvb!modulo1.repristina_layer

I look forward to comments and/or suggestions.
 

Attachments

Last edited by a moderator:
helpful, congratulations.

comment: the restore why asks to select objects?

suggestion: it would be preferable if layers without entity did not disappear. consider using a model with pre-set layers.

Hi.
 
helpful, congratulations.

comment: the restore why asks to select objects?

suggestion: it would be preferable if layers without entity did not disappear. consider using a model with pre-set layers.

Hi.
in fact it was put down for need... I should fix it.
in the first place the restoration is done by selection but it could be done a filter only on the temporary layers selecting everything.....

I finally put a purgeall for that the desired layers are eliminated.
even here I should only delete the temporary layers created.. .

I promise I will make a commitment to fix it.... :3513:

Let's say it's a beta dai....
 
ok, made some small modification as suggested by rpor66

Now the layer status is also saved at the start of the macro, and then eventually restore all layers (a leyer example already switched off before the macro).Careful. on the blocks I'm still working on it, as it is difficult to disable or isolate a block as inside there can be layers different from those where the block has been inserted. I'm thinking about a solution.if there are further comments and/or suggestions.... sell gentlemen and gentlemen... vengeance
 

Attachments

Last edited by a moderator:

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top