CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedDiesel in Dynamic blocks

 Post Reply Post Reply
Author
JimRice View Drop Down
Newbie
Newbie


Joined: 29.Dec.2009
Location: United States
Status: Offline
Points: 2
Direct Link To This Post Topic: Diesel in Dynamic blocks
    Posted: 29.Dec.2009 at 22:03
We have some dynamic blocks that have block parameters (Blockheight, Blockwidth, Cut). I trying to get block text to change when the blocks have been stretched to react as shown below. I think I need to use Diesel to do this.
 
If BlockParameter"Cut" = "N" then widthtext = BlockWidth -.006
If BlockParameter"Cut" = "L" then widthtext = BlockWidth -.003
If BlockParameter"Cut" = "R" then widthtext = BlockWidth -.003
 
When I enter $(%<\AcObjProp.16.2 Object(?BlockRefId).Parameter(2).UpdatedDistance \f "%lu2%pr2">%) in the diesel expression I get $(58.25)?? back when all I want is 58.25. How do I get rid of the $( and the )??. Also, do Diesel expressions update when the blocks stretch. My BlockPlaceholder number do update but my Diesel expressions don't.
Jim Rice
CAD Programmer
Tensar International
Back to Top
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Posted: 29.Dec.2009 at 22:53
Just a guess,  FWIW-
Maybe delete the $() from the field expression, leaving
%<\AcObjProp.16.2 Object(?BlockRefId).Parameter(2).UpdatedDistance \f "%lu2%pr2">%
 
I found an example field wheen diesel was imbedded in the field, the diesel expression was preceded by "\AcDiesel".
This link may help:
 
Back to Top
JimRice View Drop Down
Newbie
Newbie


Joined: 29.Dec.2009
Location: United States
Status: Offline
Points: 2
Direct Link To This Post Posted: 29.Dec.2009 at 23:28
I've tried that and it gives me an error "Invalid Field Code". I believe (not sure because I'm new to Diesel) that the $( lets it know that it's a Diesel expression.
 
Thanks for the reply though, I need all the help I can get.
Jim Rice
CAD Programmer
Tensar International
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,172 seconds.