suryatry26 Posted August 20, 2015 Posted August 20, 2015 How to change the width factor for specific field with attributes? . Possible for batch method with multiple dwg’s? Attributes field name like below: Date: Drawn: Checked: Here I need to change Width factor for ''Drawn'' field value for multi dwg files. Quote
Tharwat Posted August 20, 2015 Posted August 20, 2015 What do you mean by Attributes fields ? do you mean Tag names ? I can help you with a lisp program but not a batch program on multiple closed drawing . Quote
suryatry26 Posted August 20, 2015 Author Posted August 20, 2015 Yep.. Attribute Means Tag Names... Attribute Created By 'ATT' Command. Have Multiple Attribute with the different names in my dwg. I need to change the 'Drawn' Attribute Width factor. Quote
Tharwat Posted August 20, 2015 Posted August 20, 2015 Have Multiple Attribute with the different names in my dwg. I need to change the 'Drawn' Attribute Width factor. Only the text string that related to tag name Drawn ? Quote
suryatry26 Posted August 20, 2015 Author Posted August 20, 2015 can you tell how can I attach thee dwg file here? then I will add the reference file for you. Quote
Tharwat Posted August 20, 2015 Posted August 20, 2015 Have a look to the right side of the forum then you should see the button Go Advance , press it and from the new opened window there is a button entitled attach .... Quote
suryatry26 Posted August 20, 2015 Author Posted August 20, 2015 Not able to attach my jpg file which one coming 24KB. I did Below. Using ATT Command I created One Attribute. Gave the Tag name as Drawn. After that I changed as block using Block. Demo Video Follwed : Quote
Tharwat Posted August 20, 2015 Posted August 20, 2015 Copy the following codes to a new file in Notepad program then save it with any name you like (example Test.lsp) then open your drawing call the command ap then select the previous created lisp file then back to Autocad and type test to start. (defun c:Test (/ ss sc i sn e) ;; Tharwat 20.08.2015 ;; (princ "\nSelect Attributed Blocks :") (if (and (setq ss (ssget '((0 . "INSERT") (66 . 1)))) (setq sc (getdist "\nSpecify New Width Factor for Attributes between [0.5 - 2.0] :" ) ) (< 0.49 sc 2.1) ) (repeat (setq i (sslength ss)) (setq sn (ssname ss (setq i (1- i)))) (while (/= (cdr (assoc 0 (entget (setq sn (entnext sn))))) "SEQEND" ) (if (eq (cdr (assoc 2 (setq e (entget sn)))) "Drawn") (entmod (subst (cons 41 sc) (assoc 41 e) e)) ) ) ) ) (princ) ) Quote
suryatry26 Posted August 20, 2015 Author Posted August 20, 2015 Tharwat I have tried & 'Drawn' field value Width factor not getting change. Quote
Tharwat Posted August 20, 2015 Posted August 20, 2015 Tharwat I have tried & 'Drawn' field value Width factor not getting change. Come on man , it is very simple . Upload a sample drawing that contains the target attributed block. Quote
suryatry26 Posted August 20, 2015 Author Posted August 20, 2015 Yep Tharwat I tried to upload my reference *.dwg (37KB only)file using the Go Advanced Option. After Picking the Add File Option its continuouslyprocessing & finally it won’t get add. Can you give any other idea Please? for uploading the file. Quote
Tharwat Posted August 20, 2015 Posted August 20, 2015 You may a big drawing , so use the command wblock in AutoCAD and select only the block and try again. Quote
Lee Mac Posted August 20, 2015 Posted August 20, 2015 Try this program: Dynamic Attribute Width Quote
suryatry26 Posted August 20, 2015 Author Posted August 20, 2015 My dwg file size is 24KB only.. Whatever earlier (From History) I loaded I can possible toattach using insert option. But newly adding the files is the problem. It wontget add. After adding only they are given the option for track. Quote
Tharwat Posted August 20, 2015 Posted August 20, 2015 (edited) How to go to attach a drawing or any allowed extension of files in the forum. Edited August 20, 2015 by Tharwat Quote
suryatry26 Posted August 20, 2015 Author Posted August 20, 2015 Hi lee Its looks good.. But my file getting hang. Bcoz so many attributes in my file.So dynamic means getting hang for each moment. I need simply whatever attribute text I am touching meanssimply its need to change as 0.8 width factor that’s it. Here in my file they are given 3 attributes in single blockas below. Date: Checked: Approved: So if I am select Checked means that text width factorshould change 0.8. Quote
Recommended Posts
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.