AutoCAD Dynamic Blocks :: Passing A Value From The Action Parameter To A User Parameter
Dec 1, 2013
I need to use the dimension created by an action-parameter as a variable in a user defined function but AutoCAD will not allow me (see attached).
How may I access the action-parameter's dimension ?
View 1 Replies
ADVERTISEMENT
Feb 7, 2012
it is possible to use a user defined parameter to drive a action parameter.
I have several polar and linear stretch actions i would like to drive from one parameter.
View 3 Replies
View Related
Nov 14, 2011
I have 3 circles, randomly spaced. They will always be the same size. I want to resize them all about there centre points using just one parameter in the properties fly out. I've created individual linear/stretch for each circle, but I can't work out how to combine them.
AutoCAD 2012 Structural Detailing SP1 & Revit Structure 64bit
Win 7 64bit
View 6 Replies
View Related
Sep 12, 2012
I've got a block with 2 lines of text, the second line being optional. If the second line is omitted, the first line should be moved down, so it's centered.
I can handle the second line being omitted with a visibility parameter. And I can handle the first line being moved down with a move parameter. But how can I link the two?
Ideally, I'd be able to re-use the line 1 attribute and display it in whichever place was correct, but that doesn't seem to be possible.
View 9 Replies
View Related
Feb 13, 2012
We have some dnyamic block share set of parameters, if we change a parameter's value, all block that reference this parameter should be change.we can do it by program.
but create user parameters for a dynamic block must be by hand, can we create a user parameter by code? another way is user global parameter. does AutoCAD Parametric function's user value can be share with dynamic block?
View 8 Replies
View Related
Sep 25, 2012
I would like to add a new (user) parameter to a dynamic block within my code. I have noticed that this is possible manually. But couldn't find how to do this in .Net. When this parameter has been created it would be necessary to fill in a value. So the parameter can either be a general parameter, that can be adjusted later or a (user/dynamic) parameter specific for the block.
View 1 Replies
View Related
Oct 11, 2012
What is the variable to change the dynamic grip parameter size and color.
View 3 Replies
View Related
Jul 15, 2011
How do I manipulate a height parameter all of the dynamic blocks in the drawing from one single field? Say a field located in the drawing properties or on the drawing itself.
For example: Multiple blocks of different walls of same height with other blocks of things on located on those walls, dependant on the wall height, all linked to and changed by a single field. Possibly a Wall Height field located in the custom tab of the drawing properties.
I can pickout each of the blocks and change them at the same time in properites menu because they all share the same parameter name. I would just like to have that height parameter of every block in the drawing, that has that specific parameter controled by a single field. Which I could enter a new height at anytime that would change every block in the drawing to that height.
View 1 Replies
View Related
Sep 17, 2013
I am attaching a rotate parameter and action to a dynamic block.
I get the "Specify base point" bit okay but I can't figure out what "Specify radius of parameter" does.
Do I have to include or exclude other parameters like Flip or Stretch? I get some weird results when I rotate an object with other parameters.
Is it possible to place the Grip in a specific place? It always seems to like to sit on top of another parameter name.
View 9 Replies
View Related
Aug 24, 2011
I've got a block that has a couple of rotation parameters. The main one works OK. But the secondary one that is incremental and only 180 doesn't. Everything looks OK but the objects don't rotate according to the parameter but 90 degrees from what I think it should.
View 2 Replies
View Related
Nov 10, 2011
I need a rectangle block which on insertion prompts me for some data (name/tag/item number) and then displays it (this I can do). This is al pretty straightforward. But I also want to be able to fill in width and height and then have the block stretch to the correct size. So basically what I think I need is to have the value of a parameter refer to the value of an attribute. I've gotten it to work the other way around, where the attribute displays the size of one side of the rectangle (after stretching and regenerating), but I'd really like to have it working the other way.
View 4 Replies
View Related
Aug 11, 2011
is it possible to have a label set to a parmeter so that after inserting a block I can see what each parameter is.
the label could just be there or show when the cursor is over the parameter symbol?
autocad 2007
windows 7
View 9 Replies
View Related
Dec 17, 2012
What I'm trying to do is have a graphic scale with a set list of scales the user can pick from. This was easy using the Visibility Parameter.
However, I want to add a "custom" vis state where, once they select this option, the attributed definition box will pop up and give them the option to input whatever scale they are using.Check out the attached .dwg to see what I've done so far (I just have the attributes on the "custom" vis state).
View 7 Replies
View Related
Aug 14, 2011
Is it possible to link a parameter value to a function? I want text or attributes to never be "upside down".
If it is rotated with a rotation parameter the text would need to be automatically flipped or rotated if the angle is less than say >3*PI / 4 and < 7*PI/8.
View 9 Replies
View Related
Jun 17, 2011
Any way to change the order that the parameter properties appear in the property manager. Currently I think they are appearing in the order in which I placed them, but I would likr to re-arrange them.
View 3 Replies
View Related
Jan 22, 2012
I have been trying unsuccessfully for several days to achieve a stable setup for the attached. This is the closest I have been able to get so far but as you can see if you change the width then the rotation parameter, the stability of the block very quickly breaks down.
The problem seems to be associated with the move action which determines the center point of the angle parameter. It seems to only work properly when you change the width parameter and the rotate handle is in the 180deg. Any other position of the angle parameter results in incorrect alignment of the geometry.
View 2 Replies
View Related
Nov 8, 2013
The "Main Stretch" parameter does not correspond with the Block Properties Table. What does this parameter need to be attached to?The paramter will adjust with the pull down options of the Block Properties Table.
View 5 Replies
View Related
Aug 25, 2011
I am trying to create a block that has a stretch and array command, but I would also like to rotate each arrayed item indvidually. However I cannot select the rotate parameter as part of the array function, so the block end up only containing one rotate grip.
View 2 Replies
View Related
May 29, 2012
I've only got LT2008 at the moment, but this is a pet project that if my office upgrades me I want to finish.
Is it possible to rotate a line by using the length of a separate line? But the degrees of rotation need to be worked out by the length of the line
as in the following sum
angle of rotated line = (fixed number/360) * length of linear line
Left handed and PROUD
View 9 Replies
View Related
May 6, 2013
I am trying to be able to have my outreach arm stretch horizontally and on angles of 5 / 10 / 15 degrees from the pole. I have been able to make the polar stretch for this and it works fine though what i am trying to do is have the luminaire height also stretch and move when the size of the outreach changes (i can make the linear dimension work the way i want though not the luminaire parameter) as when you add the paremter into the stretch action is only moves the top and leaves the bottom at the same location which is not giving me the correct height.
The block itself is alot more complicated then this I have stripped most of the parameters out to make it less confusing but the end result would allow the user to input the outreach angle, outreach length and luminaire height. I have attached drawing for your reference.
View 5 Replies
View Related
Jul 21, 2011
I am very new to dynamic blocks. I am starting off learning the small stuff before I get to the larger more complex blocks to convert to dynamic.
I have a reference block I am trying to "master" all the functions we would like to see.
I have two major concerns.
1) Why can't I rotate this block (via rotate action) and have the attributes stay at angle zero? I thought I built the parameters and actions correct.
2) I haven't ran across anything that explains how to stretch 2 linear parameters at the same time with the same distance (ex: stretch both at .25, .5, .75)
View 4 Replies
View Related
Jun 16, 2011
how (if) I can set up my dynamic blocks so that I can set the parameter values as I insert the block, rather than with the grips afterwards?
To take a simple example; I have a block consisting of a rectangle, with 2 linear stretch parameters - length, width. Can I set it up so that when I insert the block, it asks for the length and breadth,just as it would for attributes.
View 4 Replies
View Related
Mar 12, 2012
I have a dynamic block that I am trying to add some pretty basic functionality to (at least it seems like it should be simple!). Since I’m still relatively new to DB’s, I figured I’d give some background on what I’m trying to do, cause maybe it could be done with a much easier approach than I have come up with. So if you don’t feel like reading the details, see the fourth paragraph for my actual question.
The block is a sheet reference annotation (that shows: SheetNum/TotalNumOfSheets) that we typical put in the notes section of our construction drawings. It looks nice when the text (which are attributes), lines up with the text in the note (usually Mtext, but sometimes a Mleader). So I constantly find myself completing the tedious task of placing the block at the insert point of the Mtext (which is always justified LEFT TOP), and then calculating the distance down to line that I want the block to line up with.
So what I want the block to be able to do is to be able to have the user grab the block by its basepoint, place it at the insert point of the Mtext object, and just enter the text height of the Mtext note, the line space factor, and the target line of the note that the sheet reference block should line up (the input would all be done via custom block properties in the Properties Palette). And since we almost always use a text height of 0.125 and Line Space factor of 1, those will be the defaults, and really the only thing that would need to be entered would be the line number of the Mtext that the annontation should line up with.
I already figured out most of the constraint parameters necessary and calculated the offset equation using custom parameters. I have all the linework moving correctly using the vertical constraint parameters, however, I cannot figure out how to get the Attributes to move along with the linework. I know how to move text and attributes using Action Parameters, but I can’t do it with Constraint Parameters. So I figured that maybe I could chain an Action Parameter to the Constraint Parameter, but I couldn’t figure out how to do this either. Also, I am using visibity states and would like the visibility grip to move along with everything else as well.
My block is attached. I used some lines for the Constraint Parameters to be associated with, but they are only there for the block to operate correctly, therefore they are invisible in both of the visiblity states. Probably not the best way, but it works.
View 5 Replies
View Related
Jan 9, 2013
Just exactly what does "Angle" represent when placing a "Rotation Parameter" in a DBlock?
I've tried a bunch of diff angles and haven't noticed a difference. I'm trying to figure out just what effect diff values would have. I thought that maybe when rotating the block instance, I'd only be able rotate it "so far" (270 degrees in the example I've shown). But it still went well beyond that.
View 2 Replies
View Related
Nov 20, 2012
I got a problem to pass parameter from VB to batch file. My code is below to run the batch file and to pass parameter.
Private Sub Button4_Click(sender As System.Object, e As System.EventArgs) Handles Button4.Click
Dim input As String
Dim output AsString
input = "C:atchFile est.gds"
output ="C:atchFile est.dxf"
Dim batchFile As String = "C:atchFileLC_gds2dxf.bat"
Process.Start(batchFile, input & ""& output)
EndSub
With this code the output is like below:
If you look at the screen shot you can find out that input and output variable is passing to one variable LC_gdsin. But I want that output file location will be assigned to LC_dxfout. I tried a lot but could not able to do that.
I am using VB2010 premium and windows 7 32 bit pc
View 2 Replies
View Related
Jun 24, 2013
I have a symbol on the stage: symbol1.Inside symbol1 I have an image: symbol1_image1...I have another symbol on the stage: symbol2 Inside symbol2 I have an image: symbol2_image2
in composition.ready I have an action on the mouseout for symbol1:
var theTarget = sym.getComposition().getStage().getSymbol('symbol2').$('symbol2_image2');
sym.getComposition().getStage().doMouseoutGS(theTarget);
In composition.ready i have the following function defined
sym.doMouseout = function (colorTile){
sym.$(colorTile.show());
}
I cannot get this to work and I am not understanding why.If I do an alert on the mouseout function for alert($(colorTile).attr("id")); I get the correct referenc to the element I want to show but it does not actually happen
View 6 Replies
View Related
Mar 28, 2011
My drawing- block is a little bit complicated, it contains few actions and parameters and everytime i open block editor to add, or to modify some action I can't see my drawing because actions grips and parameters grips obscure my drawing. I tried to refresh layout but it doesn't work.
please take a look on attached jpg.
View 1 Replies
View Related
Dec 23, 2011
I have user parameters that are no longer needed and are not being used anywhere. They each takes 4-5 seconds to delete, prior to 2012 this would happen instantly.
IV2014 SP1 64bit
Dell Precision T7500, Geforce GTX 480, DirectX11 306.97
SpaceExplorer 4.04, 3DxWare 3.12.2
Twin Intel Xeon E5506 2.13GHz, 12GB RAM, Win7 Pro SP1 64bit
View 6 Replies
View Related
Oct 2, 2012
I need to convert a model parameter to a reference parameter thru the API.
I saw this item discussed in the group before, but I cant find the thread.
View 4 Replies
View Related
Aug 24, 2012
Looking for sample VBA code to get all referenced documents from an assembly and add a boolean user parameter to each (parts and sub assemblies). I have been trying to modify peices of code I have found on this forum and Mod the Machine, but have had no luck so far.
There may also be standard content center parts in the assembly as well that I would like to somehow identify so I can skip over them.
View 1 Replies
View Related
Apr 22, 2013
Most of the time, I delete an user parameter without problem. But, in a part, I got an error for two of them and I don't understand why. I create a new parameter and redirect all dependencies from the old one to the new. (oldParam.Dependencies.Count = 0).
But when I try to delete it, I've got an error. Also, when I try to delete it by the interface, I don't see the Delete option.
View 8 Replies
View Related