+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Senior Member
    Computer Details
    YZ's Computer Details
    Operating System:
    Windows XP
    CPU:
    Intel Duo Core E6550 @ 2.33GHz
    RAM:
    1.98 GHz, 3.23GB RAM
    Graphics:
    Intel G33/31 Express Chipset Family
    Monitor:
    LG Flatron W2343T
    Discipline
    Surveying
    YZ's Discipline Details
    Occupation
    CAD Operator and Manager; Land Survey, Civil Design
    Discipline
    Surveying
    Details
    Topographic ground surveys for architects and engineers; Subdivisions in NSW; Civil Engineering Design.
    Using
    AutoCAD LT 2012
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    256

    Default Button Macro to Utilise CHANGE command on all blocks and text

    Registered forum members do not see this ad.

    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?

  2. #2
    Senior Member
    Computer Details
    YZ's Computer Details
    Operating System:
    Windows XP
    CPU:
    Intel Duo Core E6550 @ 2.33GHz
    RAM:
    1.98 GHz, 3.23GB RAM
    Graphics:
    Intel G33/31 Express Chipset Family
    Monitor:
    LG Flatron W2343T
    Discipline
    Surveying
    YZ's Discipline Details
    Occupation
    CAD Operator and Manager; Land Survey, Civil Design
    Discipline
    Surveying
    Details
    Topographic ground surveys for architects and engineers; Subdivisions in NSW; Civil Engineering Design.
    Using
    AutoCAD LT 2012
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    256

    Default

    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.

  3. #3
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,791

    Default

    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.
    A man who never made mistakes never made anything

  4. #4
    Senior Member
    Computer Details
    YZ's Computer Details
    Operating System:
    Windows XP
    CPU:
    Intel Duo Core E6550 @ 2.33GHz
    RAM:
    1.98 GHz, 3.23GB RAM
    Graphics:
    Intel G33/31 Express Chipset Family
    Monitor:
    LG Flatron W2343T
    Discipline
    Surveying
    YZ's Discipline Details
    Occupation
    CAD Operator and Manager; Land Survey, Civil Design
    Discipline
    Surveying
    Details
    Topographic ground surveys for architects and engineers; Subdivisions in NSW; Civil Engineering Design.
    Using
    AutoCAD LT 2012
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    256

    Default

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

  5. #5
    Super Member
    Computer Details
    designerstuart's Computer Details
    Operating System:
    xp
    Computer:
    various
    Discipline
    Architectural
    designerstuart's Discipline Details
    Occupation
    architect
    Discipline
    Architectural
    Using
    ADT 2009
    Join Date
    Jun 2010
    Location
    near london, near europe
    Posts
    756

    Default

    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.

  6. #6
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,791

    Default

    One question why are you rescaling the blocks ? or is it just that they are diagramatic and true size is irrelevant .
    A man who never made mistakes never made anything

  7. #7
    Senior Member
    Computer Details
    YZ's Computer Details
    Operating System:
    Windows XP
    CPU:
    Intel Duo Core E6550 @ 2.33GHz
    RAM:
    1.98 GHz, 3.23GB RAM
    Graphics:
    Intel G33/31 Express Chipset Family
    Monitor:
    LG Flatron W2343T
    Discipline
    Surveying
    YZ's Discipline Details
    Occupation
    CAD Operator and Manager; Land Survey, Civil Design
    Discipline
    Surveying
    Details
    Topographic ground surveys for architects and engineers; Subdivisions in NSW; Civil Engineering Design.
    Using
    AutoCAD LT 2012
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    256

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by designerstuart View Post
    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.

Similar Threads

  1. SELECT in macro won't stay selected!!!! How to hide Macro in command line aswell?
    By jamesfear in forum The CUI, Hatches, Linetypes, Scripts & Macros
    Replies: 11
    Last Post: 31st Jul 2012, 02:23 am
  2. Change text inside blocks
    By maksolino in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 18th Feb 2011, 04:29 pm
  3. Change Command Line Text Colour
    By civil_graham in forum AutoCAD General
    Replies: 4
    Last Post: 26th Feb 2010, 05:42 pm
  4. Change Text Rotation via Macro
    By SeaRR85 in forum AutoCAD General
    Replies: 6
    Last Post: 12th Nov 2008, 08:45 pm
  5. Replies: 0
    Last Post: 22nd Jan 2007, 10:20 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts