TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: rhott on July 14, 2004, 01:17:29 PM
-
I need to find a way to rotate a block without making the attributes inlegible. Is this possible?
-
Are you talking about rotating the block and not the attributes?
This macro rotates the attributes to the correct position, then allows you to move it.....
^C^C-ate;YES;;;;\;ANGLE 0;POSITION;\;
-
Wow, how could somthing I've been trying to do for so long be so very easy.
One more question. :?:
When I used to insert a block with attributes a dialog box would pop up so I could enter in the variables. This no longer happens, the attributes all go to default. I'm sure this is just a setting I've missed or forgotten but I really need help this is taking forever!!
Thank a ton for your help!!
-
try attreq
-
Try CMDDIA and set it to (1).
-
try attreq
I believe SMadsen is correct.....
-
Try CMDDIA and set it to (1).
what does CMDDIA do? I tried to look it up and there was no info on it....
-
It depends what the problem is
ATTREQ controls if attributes should be filled in at insertion or simply use the default settings without prompting.
ATTDIA controls dialog entry or text screen entry (given that ATTREQ is 1)
Maybe it's a combination of the two that's a problem?
-
Try CMDDIA and set it to (1).
what does CMDDIA do? I tried to look it up and there was no info on it....
This is the info I got on CMDDIA:
How do I make my dialog boxes reappear?
A system variable named CMDDIA (command dialog) controls the display of many dialog boxes. Setting CMDDIA to 0 disables the display of these dialog boxes, forcing input from the command line. Set CMDDIA to 1 to have the dialog boxes display normally.
-
CMDDIA used to control display of the plot dialog (and some old database dialogs).
Can't remember if it was already obsolete before 2005 but from 2005 it definately is.
-
Don't know what happened got info from here:
http://www.ccadinc.com/faq/faq.html#filedia
-
:lol: :o Goodness what alot of information! You're all terrific!
As much as I hate to do this... the ATTREQ is what did the job
it's exactly what I was missing.
Thanks for all of your help today!!
-
Maybe I should start another psot for this but its a very similar question.Does anyone know how I would select a number of attributes in a drawing at once and set all their attributes to 0 degrees,without going through them all individually?Cant select the attributes rotation via the properties window.
-
That could be done with a small routine. How would you want to select the attributes?
-
Just set the ssget function to accept any type of selection with some filters for blocks with attributes, then change the property for rotation to 0. I belive the dxf code is 50, but I'm not looking so I could be wrong.
-
Was hoping for the user to individually select the attributes as they will be different types of attributes attached to different blocks.
-
Here's your selection method:
(setq ss (ssget '((0 . "INSERT") (66 . 1))))
That will only allow you to select blocks with attributes. If you type all it will select all blocks with attributes and nothing more or less. Use ssname and entget to get into the dxf listing.
HS, is this something you're trying to do or just want done?
-
Well, I have a proggie that allows the user to change a heap of things with attributes...it is too big to post as code, so I will post the VLX in the lilly pond and let you know when you can get it...
-
Thanks Keith appreciate it,I'll now have to figure how to use VLX,before you post it. :)
-
vlx is the same as a lisp, but you don't see the source code. You load it and type the command name. Keith'll have to tell you the command name.
-
Ok it took me forever and a day, but here it is...
http://www.theswamp.org/lilly.pond/KEB/ModattRel.VLX
The command is MODATT
-
Nice,works like a treat Keith :dood:.Kind of what the global attribute editor shouldve been.
-
thanks... when I get some more time, I am considering adding a few more options to manipulate attributes, including adding and removing attributes to/from selected blocks
-
Used the modatt vlx application you created today,changed attributes all changed to 0 deg rotation.Have now noticed that the attrubtes have shifted place,but block remains in original place.Cannot use modify in place xref/block, object is not in working set,even though im selecting the correct block/attribute.If i do blockreplace command,it'll replace the block at the original insert scale,but the attribute will be to big.So i thought id use modatt to change the height of all the attibutes in my drawing.This changed the scale but the attributses are not in the correct place.i understand this is a free peice of software you developed and am really greatfull,but if you could determine whats going on keith itd be cool.