The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Hurricane for AutoCAD
 General Discussion
 here is a tricky one

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Attach a File

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
mbicm Posted - August 15 2007 : 09:58:13 AM
ok i need some brainstorming. i got my attributed titleblock, and there is a field in there with the drawing number. the numbers are sequential throughout the whole set of drawings. they currently have a hyphen at the start so they look like -0610-001, -0610-002, etc. i am trying to get rid of the hyphen at the start of it all. at first i thought i could do a find and replace for -06 to 06 since these numbers remain the same through the whole project, but there is other -06's throughout the drawings that i dont want replaced. So the question is how do a remove the hyphen from 400 drawings?
5   L A T E S T    R E P L I E S    (Newest First)
mbicm Posted - August 16 2007 : 5:32:37 PM
i found a lisp routine off the autodesk website at http://www.xanadu.cz/en/ called srxtext, which allows you to do find/replace in selected blocks or layers.
when i scripted it i had to do a little more to get it to go through all the layout tabs.
and i came up with

(foreach layout (layoutlist)
(srxtext "Substring" "-06" "06" (setq ss1 (ssget "_X" '((0 . "INSERT") (2 . "titleblock")))))
)
n/a Posted - August 15 2007 : 12:49:46 PM
The layouts definitely would make things more difficult. I think it still might be possible using Visual Lisp within a script. It might be a little too complex for me, but I'm still willing to give it a shot, if you are able to post a drawing so that I know what I'm working with. If posting the drawing is a problem due to confidentiality, I doubt if, given my meager abilities, I can get something to work. I expect it will take me a little trial and error.
mbicm Posted - August 15 2007 : 12:19:38 PM
our plants that we design are divided into areas. each area has a model and in that model is anywhere from 6 to 26 layout tabs. each tab is a different drawing number. with that said, attedit doesnt sound feasible.
n/a Posted - August 15 2007 : 12:13:13 PM
If the attribute has the same unique block name and tag, you should be able to construct a script using "-attedit", I think. If that is the case, if you can upload one of the DWG files, I can take a stab at it, although I might not get at it until this evening.
mbicm Posted - August 15 2007 : 10:26:17 AM
Or is there a way to do a find/replace only on the titleblock?

The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.16 seconds. Snitz Forums 2000