Jump to content

Change the width factor for specific field with attributes


Recommended Posts

Posted

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.

Posted

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 .

Posted

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.

Posted

 

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 ?

Posted

can you tell how can I attach thee dwg file here? then I will add the reference file for you.

Posted

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

Posted

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 :

Posted

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

Posted

Tharwat I have tried & 'Drawn' field value Width factor not getting change.

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

Posted

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.

Posted

You may a big drawing , so use the command wblock in AutoCAD and select only the block and try again.

Posted

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.

Posted (edited)

How to go to attach a drawing or any allowed extension of files in the forum.

Edited by Tharwat
Posted

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.

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