Print Page | Close Window

Arithmetic operation in a position field

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=7310
Printed Date: 19.May.2026 at 04:38


Topic: Arithmetic operation in a position field
Posted By: elmasry
Subject: Arithmetic operation in a position field
Date Posted: 11.Feb.2012 at 15:27
Hi, I'm using an object Y 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.



Replies:
Posted By: Vladimir Michl
Date Posted: 12.Feb.2012 at 14:11
Yes, you can do this. See the tip:
http://www.cadforum.cz/cadforum_en/qaID.asp?tip=6381 - 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 (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner



Print Page | Close Window