AutoCAD LT :: Using Field Expression In Diesel Macro
Nov 13, 2013
Is it possible to get the value of a (custom)field expression in a LT diesel macro?
E.g. I would like to read the value of the following field: %<AcVar CustomDP.Current Revision f "%tc1">%
I need this information so I can use it in a file name.
View 5 Replies
ADVERTISEMENT
Sep 2, 2011
If LISP can be used to edit a diesel expression in a field inserted in dtext? I need to adjust the last number in $(+, $(GETVAR, USERI2),1) .
View 4 Replies
View Related
Aug 24, 2011
Is there a way of showing only the location of the xrefs using a diesel expression (or otherwise)?
At the moment I'm using $(xrefs,5), but all the xrefs are in the same folder, and I only want that folder path shown once.
I.e., even if I have 5 xrefs, I just want one line showing the folder path of those xrefs.
View 5 Replies
View Related
Jun 4, 2013
have a diesel expression that would read a layout tab? for example if i have a layout tab names 244180101 I would need it to read the last 2 digits in the layout tab.
AutoCAD Civil 3D 2014
HP Z620 Workstation 64-bit
Duel Intel Xeon E5-2620 @ 2.00 GHz
Ram: 48 GB
View 9 Replies
View Related
Jan 12, 2012
I have a multileader balloon that I want to have a field that is a diesel expression that will allow me to select a block and extract the attribute value within that block. Is there anyway to do this?
View 9 Replies
View Related
Nov 14, 2013
I have been asked to make the title text larger (drawing are being issued at 1/2 scale, A1 to A3) on a large set of drawings. My solution was to copy the title attribute block to a temporary location, resize the attributes and redefine the block by running a script (scriptpro). Some drawings needed the title line split to next line so I had to move the sheet counter (1 of xx, 2 of xx etc.) which was linked to drawing file name for number with a field/formula.
The diesel expression shown below extracts that number. My problem is I cant figure out how to I can edit this expression to allow for a set not starting at 1. I had used a formula to subtract the difference,but how do you express this to run in a script?
This is my script......
attreq
0
-insert
ftc-gwp-a1-nosheet-stb=ftc-gwp-a1-nosheet-stb
0,0
1
1
0
[code]........
View 7 Replies
View Related
Jan 10, 2014
I created a dynamic block with text field that show the lenght of a line, but this line can be 0 and in that case I want that the text field will show nothing instead of "0".
I try to write it in diesel expression with if command but i don't know how to bring the object lenght into the diesel expression code.
View 4 Replies
View Related
Mar 15, 2013
I have a task where I need to automatically insert the drawing number (no path), plus two additional items, one an attribute, the other is within a dynamic block. I can achieve this using fields but now I havce to truncate some of the text.
It seems like I can't edit if I am using fields and attributes/blocks can't be used in Diesel (correct me if I'm wrong)
This is the information I have:
Filename: 123456-AS-WE.dwg
Attribute: Q2
Dynamic Block: X1 - Additional Information
This is what I require: 123456-AS-WE [Q2] [X1]
This is what I have so far: 123456-AS-WE [Q2] [X1 - Additional Information]
In other words, I need to restrict the dynamic block field to the first two characters.
View 6 Replies
View Related
Dec 21, 2011
My DIESEL is not so good.I have a macro and he works, but when i touch enter. He doesn't start over, but start halfway.
userr1! ^C^C-layer;m;H17-Tekst;;-style;Standard;;;;;;;;c;5;-mt;@0,0;h;3;j;mc;@0,0;$m=$(getvar,userr1);;userr1;$(+,1,$(getvar,userr1))
View 2 Replies
View Related
Feb 16, 2010
How I can update my diesel expression to display the area in square feet not square inches. See expression below.
^C^Cattdia;0;_-insert;AREABLK;1;1;0;$M=$(getvar,AREA);attdia;1
View 9 Replies
View Related
Jul 3, 2012
" Convertion of AUTOLISP base routines to Diesel MACRO based routine to be used in a AUTOCAD LT based platform "
Here i am attaching the lisp file for ready reference.
View 1 Replies
View Related
Aug 6, 2013
I have created a Field expression inside a multiline text to extract a block attribute value, but i would like the --- value that it shows when there is no data to be extracted from the block to be invisible.
is there a Diesel expression for this?
Or an Autolisp.
or can you put in ifblank function like excel??
View 4 Replies
View Related
Feb 15, 2012
I can't write an expression in an attribute field.
View 2 Replies
View Related
Apr 10, 2013
say you make some parcels in your project with custom data fields like: id_no, permit_no, acres_served etc. you attach an agency provided shape file via an fdo connection that has many fields of information like above.
when you right click on your parcel and do parcel properties you get a tab that lets you input the custom parcel data.
lets say you print an fdo map label showing, say, the id_no, provided in the shape file. Then in your custom parcel properties for id_no you type that in.
is there a way to make an expression to put in the other custom parcel properties that will read, say, the permit_no(id_no) from the fdo like and put that information in the custom parcel property field?
View 4 Replies
View Related
Jan 5, 2005
I understand that there is a method to increase Depth of Field for a static subject at reasonable magnification, (say a dragonfly at X1), by taking a number of pictures, each focussed at different points along the length of the image, and then combining in photoshop and possibly (?) blending.
Or would it be better to place them in layers and progressively erase the out of focus areas.
View 8 Replies
View Related
Dec 30, 2012
I have been using the addin "Save Run Macro" to automatically run a macro every time the "Save" button is pressed.
Any of the following questions about "Save Run Macro"?
1] When I protect the macro from viewing (so I can protect my code) "Save Run Macro" does not see the macro.
2] When I save the part for the first time (ipt, iam or idw/dwg) the macro does not run. I always need to run the macro again.
View 1 Replies
View Related
May 9, 2013
How to copy the "Title"-field and the "Caption"-field into the "Keyword"-field?
View 3 Replies
View Related
Aug 23, 2012
How can I evaluate and expresion to the nearest tenth?
Civil 3D 2012 & 2013
HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram
Note: Its all Resistentialism, so keep calm and carry on
64 Bit Win7 OS
View 9 Replies
View Related
Nov 19, 2013
I'm playing around with the FEMA NFHL Database and have some text set up to provide the Flood Zone of the Polygon as shown below. I'm getting an invalid expression, when I go to add the word Zone to the front of the data.
View 6 Replies
View Related
Feb 2, 2012
I am trying to create an expression in SAC and am having trouble getting it to work the way I want. The goal is to have the subassembly figure out what slope to use. If I do not have super elevation, I want it to use the grade for the in the input.output parameters. If I do have super elevation, I want it to use the super settings. So far I have this
IF((Side=Left)AND(SE.HasLeftSO),SE.LeftSO,CType(ShoulderSlope,Double))
This works if I am only creating a left side. However, I want it to decide which side super elevation settings by the input parameter side.
View 5 Replies
View Related
Mar 15, 2012
One of the main things I do is label elevations from an alignment and a profile, in plan view.
I have a style that does this, and it gets to the point where it asks to pick the profile.
If the profiles are data ref's, i can pick from a list, but if the alignment is xreffed, you must do a graphical pick.
This is super inconvenient, as my profile views are in a different base than my alignments, and they are way off to the side.
So I must xref the profile base in, and split my viws so I can pick them without excessive zooming.
Did Autodesk neglect the fact that if they make objects available via xref, they also need to make child objects available?
If I choose to use a dref as the data source, I must make a dref to the alignment and each profile I want available.
Three steps per street at a minimum.
This is also super inconvenient.
I'm struggling to find a decent workflow on this. Both approaches seem painful.
I had always thought the xreffed objects would provide the profiles, and only found they do not just now [URL]...
View 1 Replies
View Related
Nov 27, 2011
Having this issue with IE9? I have a table driven iPart that has an expression in the description field. The expression is =PL <THICK> x <WIDTH>, so that as the thickness and width change the description of this plate also changes. I have recently added rows to this part for the use of bar instead of plate on certain shapes. In order for the bar description to match standard steel shape nomenclature the expression on these parts needs to be =BAR <WIDTH> x <THICK>. How can I add the description to the iPart table so that I can simply edit the bar parts to be as needed?
Some things to note:
1.) These are custom iParts so when the item is inserted you select the thickness, file name, save location, etc.
2.) There are about 705 lines to this iPart right now and I would prefer not to go higher.
3.) I would like to keep these as the same iPart instead of having two different files.
4.) I need the description to be an expression because long after these parts are placed, they sometimes change and I need the dimensions to update after the fact like all our other parts (so don't forget that these one won't and then the drawings are incorrect).
Inventor Professional 2013 (SP-2.3), Product Design Suite Ultimate
Desktop: Intel Core i7 3.4GHz, 16.0 GB RAM, Windows 7 Ultimate SP-1, 64-bit OS, (2) GeForce GTX 580 (331.81), Space Pilot Pro (3.16.1)
Laptop: Intel Core i7 3.9GHz, 16.0 GB RAM, Windows 7 Pro SP-1, 64-bit OS, GeForce GTX 780 (331.81), SpaceNavigator (3.17.7)
View 3 Replies
View Related
Mar 21, 2012
get 2012 to make an expression for curve delta angles come in DMS and not decimal degrees? Why do I need this? Well C3D does not have a delta angle label for curve pipe and our client requires it on the drawings.
View 9 Replies
View Related
Oct 22, 2012
I have created Template as per my compnay standards and would like save its as my company standard template (*.idw) file. Everything is done but i need add PLOT DATE on the template file. In autocad its possible by adding fields in text.So i followed the same procedure to add PLOT DATE in inventer template. But i dont find any option for adding PLOT DATE. There is any option available to add field expression or something to get the output plot date ????
Inventor Professional Suite 2010
Windows 7
View 9 Replies
View Related
Oct 25, 2013
I need to edit a personnal expression in VBA ("COMPA")
I join an attachment to show you what i want to edit.
The problem is that i don't find where i can modify this expression in VBA in the database.
View 1 Replies
View Related
Jan 15, 2013
I'm trying to use an expression for text height and everytime I enter the name of the expression I get "Invalid Input". Is there a trick to doing this?
I even changed a style that "HAD" allowed me to use an expression, to a number then tried to reenter the same expression name that was there and get "Invalid Input".
Civil 3D SP2.1
64 bit
windows 7
View 6 Replies
View Related
Sep 6, 2013
I am trying to make a single point label style that will return a blank line in the label if no data is provided.
The way i have it coded now my label for a structure with only two inverts comes out looking like this:
STCB 500 Rim=300.00
12" CONC N IE=295.00
12" CONC S IE=296.00
IE=300.00
IE=300.00
I would like the number of lines returned to match the actual number of inverts in the structure and leave out the place holders.:
STCB 500 Rim=300.00
12" CONC N IE=295.00
12" CONC S IE=296.00
I can work around this by having a label style for each number of pipes, but i would also like this code to be inseted into a table style and in that case i don't know of any way to assign multiple styles to one table.
My current code looks like this:
RIM=<[Point Elevation(Uft|P2|RN|AP|GC|UN|Sn|OF)]>
<[1 SIZE(CP)]> <[1 TYPE(CP)]> <[1 DIR(CP)]> <[IE TEXT(CP)]><[1 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>
<[2 SIZE(CP)]> <[2 TYPE(CP)]> <[2 DIR(CP)]> <[IE TEXT(CP)]><[2 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>
<[3 SIZE(CP)]> <[3 TYPE(CP)]> <[3 DIR(CP)]> <[IE TEXT(CP)]><[3 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>
<[4 SIZE(CP)]> <[4 TYPE(CP)]> <[4 DIR(CP)]> <[IE TEXT(CP)]><[4 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>
LADDER <[LADDER(CP)]>
The problem is that 1 INV-4 INV are being defined by an expression that reads like
{Point Elevation}-{1 MD}
so when no data is intered for my UDP "1 MD" it returns the point elevation. I want an equation that says if rpoitn elevation -measure down=point elevation then no data is shown.
View 5 Replies
View Related
Jul 3, 2013
I am trying to create a label for fire hydrants in plan view that shows the flange elevation. I want the elevation to be 0.4' above the adjacent road profile. I added a reference text component to my label style that shows the profile elevation. Where would I find the expression for the profile elevation reference text?
Civil 3D 2012 SP3 | Win 7 64-bit SP1
Xeon E5-1620 @ 3.60GHz, 16GB Ram | NVidia Quadro 600
View 2 Replies
View Related
Nov 11, 2011
Using expressions/formulas in a dynamic block. I want to create a dynamic flat truss with webbing, where you can select the number of V webbs and as your stretch the length of the truss the vees stretch accordingly. With the array parameter, you seem to be limited to predefining a spacing and the number of instences increases as you stretch the object. I want to set the number of instences and let the spacing change. In particular I have tried using the Parameters Manager to create a user parameter that takes the lenght of the truss and divides it by a number. When I try this AutoCAD gives me "A dependent expression cannot be evaluated" It appears that all of the Action Parameters cannot be used in expressions which really limits things.
View 1 Replies
View Related
Aug 31, 2012
I know I can use the expresion "$(getvar,ctab)" to reference the current layout tab name but is there a way to reference say the layout in previous or next tab in reference to the current tab. I am doing some plan and profile drawings which contain match lines I would like to have the match line text automated. For example if I'm on layout called PP02 there would be two match lines in the drawing one would read MATCH LINE PP01 and the other would read MATCH LINE PP03 I would like to automate this so the PP01 of PP02 is referencing the previous or next tab.
View 3 Replies
View Related
Nov 26, 2012
Here is my expression:
IF((FMOD({Raw Station}+5,15))!=0,-1,({Profile Elevation}-100*FLOOR({Profile Elevation}/100)))
I have also tried it without a pair of brackets:
IF((FMOD({Raw Station}+5,15))!=0,-1,{Profile Elevation}-100*FLOOR({Profile Elevation}/100))
and I have tried it using {Station Value} instead of {Raw Station}
Here's what it's meant to do (because it's a long one):
If the station value + 5 is not divisible by 15, return -1
If the station value + 5 is divisible by 15, return the profile elevation,
if the profile elevation is in the 100 range, subtract 100
if the profile elevation is in the 200 range, subtract 200...etc
Here is my conundrum: If I use the expression in a profile label, it works fine. But if I use it in an alignment label as reference text, it returns -1 for every value.
View 9 Replies
View Related