AutoCAD 2010/2011/2012

Reply
New Member
elmasry.ayman
Posts: 1
Registered: ‎02-11-2012
Message 1 of 2 (311 Views)

Arithmetic operation in a position field

311 Views, 1 Replies
02-11-2012 12:31 AM

Hi, I'm using a position field as an attribute for a block. This is what I use:

 

%<\AcObjProp.16.2 Object(%<\_ObjId 2118086344>%).InsertionPoint \f "%lu2%pt2%pr4%ps[+, M]%ct8[0.001]">%

 

What I would like to do is an arithmetic operation of addition, something similar to how 'CAL works. In this particular case I would like to add the value of 100,000 before the conversion factor, or 100 after the conversion factor.

 

Thanks.

*Expert Elite*
vladimir.michl
Posts: 224
Registered: ‎09-17-2006
Message 2 of 2 (286 Views)

Re: Arithmetic operation in a position field

02-12-2012 01:36 PM in reply to: elmasry.ayman

Yes, you can add values to automatic properties. See the tip:
http://www.cadforum.cz/cadforum_en/qaID.asp?tip=6381
 
The resulting expression will look similar to:
%<\AcExpr (100+%<\_FldPtr 305306904>%) \f "%ps[+, M]">%
and
%<\AcObjProp Object(%<\_ObjId 2129671616>%).InsertionPoint \f "%lu2%pt2">%

 

Vladimir Michl, www.cadstudio.cz  www.cadforum.cz


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community




Connect with AutoCAD

Twitter

Facebook

Blogs

Pinterest

Youtube