Jump to content

Recommended Posts

Posted

Is there a way to use CHANGE command globally? It does precisely what I want, except that it does it one object at a time.

 

I just stumbled on CHANGE command this week and I thought I'd found my Holy Grail.

 

I have always wanted a macro that can change the rotation of all blocks to match the VIEWTWIST. But CHPROP only deals with Layer type changes.

 

1. Is there a way to CHANGE all blocks at once? (In an automated macro) or

2. Is it possible to get the macro to loop and input the new settings for as many blocks as are in the drawing?

  • 1 month later...
Posted

Does anybody even use the CHANGE command? I cannot see how it is helpful, unless you only want to change 1 object, in which case why not simply change it in the properties?

 

I have not gotten any further on this. It is a difficult thing to search on account of the word being used frequently in posts unrelated to the command itself.

 

Has anybody used a loop inside a macro? Or a script for that matter (though I'm very rusty at scripts, I'm ready to learn). I'll try the * operator at start of my macro to see if that loops. It's just that I'm nervous it will crash in this case.

Posted

Re Change all blocks at once answer is yes but depends on your question there is numerous stuff you can do to blocks can you describe your request a bit more.

Posted

On all our jobs we manually select all block references and set their scale and rotation according to the viewport scale and viewtwist.

 

I am hoping to automate this with one button that reads the viewport properties and adjusts the blocks accordingly.

 

Now that I write this "out loud" it seems like something that "annotative" blocks could also do. I am open to that option, just have never got them to work before.

 

(Note LT, so I cannot use LISP solutions).

Posted

dynamic blocks sound good for this, but i've never had much joy learning them, either. ignoring that.....

 

sounds like you want a macro that does this:

select all blocks

specify scale

specify rotation

 

think this could be done, i'll try but think it's beyond my skills.

i think to automatically specify same angle as viewtwist would need lisp.

Posted

One question why are you rescaling the blocks ? or is it just that they are diagramatic and true size is irrelevant .

Posted

sounds like you want a macro that does this:

select all blocks

specify scale

specify rotation

 

think this could be done, i'll try but think it's beyond my skills.

i think to automatically specify same angle as viewtwist would need lisp.

 

Yes that is essentially what I am hoping to automate. I would be satisfied with a macro that achieves the first step alone!

 

I'm hoping to use DIESEL to setvar userr1 with the twist angle and then read it back. But I think it is a little too ambitious.

 

One question why are you rescaling the blocks ? or is it just that they are diagramatic and true size is irrelevant.
BIGAL, yes our blocks are diagramatic only. (Except in the case of trees, which our clients are now asking for them to be at the correct scale and so we manually update them after this step - but I digress). There is a function to set hatches parallel to viewport, that would be amazing to utilise that function into block definition. And perhaps, as I talk this out on the forum, annotatively scaled blocks really is the best way forward. I will try another one early next week, but I have to admit I'm nervous.:oops:

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...