You are browsing the archive for constraint.

Using Parametric Features in Dynamic Block

December 6, 2009 in AutoCAD, CAD, Revit


architecture tools - small
Parametric feature is very useful if you have similar object with slightly different geometry or size. In manufacturing, if you have nuts and bolts that looks the same, but have different sizes, parametric features is perfect for this purpose. This kind of remind us about dynamic block, isn’t it? Dynamic block has the same purpose, but has limitation. I can’t figure yet how we can use it in AEC industry, except for reusable contents.
So this time, we are going to create a column with dynamic block. This is similar with the column we created in dynamic block tutorial. But we are not using the parameter and action. We are going to use geometric and dimension constraint. We will see how we can get different dynamic block behavior.

For a start, let’s create two rectangles like this.
initial column
I made a 200x200mm rectangle and offset it 20mm to outside. The 200x200mm is the column, and 20mm is the column finishing layer. Make it as a block, and use the center of the rectangle as insert point. Same like we did before.

As usual, to add ‘dynamic’ behavior to the block, we need to open it in block editor. Let’s forget the block authoring palette for a while. We will focus on the contextual tab: block editor.
block editor palette
Let’s activate the dimensional constraint. use linear dimension, and snap to the rectangle end points. Change the constraint name immediately to h and w like below.
linear constraint
Now we will tell AutoCAD that we want the finish thickness is 20mm. Let’s add one more constraint, name it finish.
finish thickness
Here is the deal. We have four rectangular sides that need to define the offset distance. Add them all and when AutoCAD ask you for the value, type ‘=finish’. It means we are going to use the same value as the previous constraint.
referencing to finish
And when AutoCAD ask you the number of grips, enter 0. We don’t need it since we refer to ‘finish’ constraint. Here is the finished dimension constraint placement.
dimension constraint
We haven’t finished yet. But let’s test it before we continue. Click parameter manager button on your ribbon.
parameter manager
As you can see, the result can be unpredictable! Why? We haven’t tell AutoCAD the objects relations to each other. We need to add geometric constraint.
parameter changed
Undo until you see the rectangle back. We will add geometric constraint to these rectangle. Instead of adding them one by one, let’s activate Auto Constraint. Press S then [enter] to change the settings. Deactivate all, except perpendicular. We want or rectangle sides to be perpendicular to each other.
constraint settings
Click OK then select them all. Add one horizontal constraint to any horizontal edges. You can left the whole constraint on actually. Not just the perpendicular. I just want you to know the option exist :)
Try to change the parameters again. We still have a problem: the insertion point is shifted.
parameter changed 2
The last thing, we need to define a fixed point as the center of the column.
Let’s create a point at #0,0. You can activate point by typing POINT then [enter]. Then type #0,0 [enter]. If you can’t see the point, type DDPTYPE [enter] to change the point appearance.
Lock it at its position using fix constraint.
fix constraint
Now add dimensions from the point to the rectangle edges. Use h/2 and w/2 as the value. This will make sure our column center won’t shifted.
the divider constraint
Let’s try again. Does it work?
We will explore this column again next time.

align=center borderColor=#000000>
Do you find our tutorial useful?
Please consider to donate via Paypal to support this site providing free contents!




Source: CAD Notes – Using Parametric Features in Dynamic Block
Go to Source: CAD Notes

Understanding Dimensional Constraint

December 6, 2009 in AutoCAD, CAD, Revit

parametric tab
Another parametric feature available is dimensional constraint. We discussed about geometric constraint, and this time dimensional constraint.

Dimensional Constraint Types

Basically we use dimensional constraint to maintain distance between points or objects. Usually dimensional constraint don’t work alone. We use geometric constraint along with dimensional constraint.
There are three types of dimensional constraint:

  1. Dynamic Constraint
  2. Annotational Dimension
  3. Reference Constraint

Annotational Dimension

In a nut shell, annotational constraint behave like common dimension we know all these years. You can plot it, you can assign it on a layer, and the size behave like other annotation. The size is not affected when you zoom the drawing.

Dynamic Constraint

Dynamic constraint is a bit different. it’s only for display purpose. It will not be printed. If you remember how you use parameter in dynamic block, it also display at the same size when you zoom the drawing.
You can change the form, dynamic or annotational by changing the ‘form’ variable.

Command:
DIMCONSTRAINT
Current settings:  Constraint form = Dynamic
Select associative dimension to convert or
[LInear/Horizontal/Vertical/Aligned/ANgular/Radial/Diameter/Form] <LInear>:F
Enter constraint form [Annotational/Dynamic] <Dynamic>: A

Reference constraint

Reference constraint is not created directly. You can create a dynamic or annotational dimension, and then convert it to reference dimension.
reference dimension
We use reference constraint only for showing the distance values. We can’t change the parameter like dynamic or annotational constraint. Let’s compare them.
Annotation constraint size will follow the object size when you zoom. Dynamic constraint will show the same size, no matter how you zoom it. The reference dimension is shown with brackets.
dimensional constraint type

Using Dimensional Constraint

After you placed dimensional constraint, you will see the parameter name like d1, d2… dia1, dia2… by default. We can change it later. You can change the parameter by selecting the constraint, right click your mouse above dimension, and select edit constraint.
Or you can change the name and value in properties palette.
constraint properties
We can input calculation in expression field. For example, we want the base length is dependant to body length plus 20mm clearance. This workflow is used heavily in manufacturing design.
By using dimensional constraint, we don’t modify the object. We change the parameter value, and the object will be adjusted. To make the result predictable, we use it together with geometric constraint. We will create some objects using these parametric behavior later. But that’s the concept.
As I don’t write too much details in this parametric feature, you can also read them in my friend blog, Orhan Toker:

  1. Geometric Constraint (1)
  2. Geometric Constraint (2)
  3. Dimensional Constraint (1)
  4. Dimensional Constraint (2)

align=center borderColor=#000000>
Do you find our tutorial useful?
Please consider to donate via Paypal to support this site providing free contents!




Source: CAD Notes – Understanding Dimensional Constraint
Go to Source: CAD Notes

Understanding Geometric Constraint

December 6, 2009 in AutoCAD, CAD, Revit

parametric features
Finally, Autodesk add parametric features in AutoCAD 2010. Why finally? This feature is already there in manufacturing industry for decades. If you have used any manufacturing application like Inventor, CATIA, SolidWorks, ProE, etc, then you should be already familiar with this feature.
There are 3 panels in parametric tab: geometric, dimensional, and manage. Let’s talk about geometric first.
Geometric constraint will maintain how your objects related to each other. Let’s see this example.
Let’s say we have a rectangle. We know that the sides have to be perpendicular to each other. But sometimes during the design, you may need to change it. If I stretch one of the rectangle vertex, then it would not be a rectangle anymore. AutoCAD doesn’t know that you want to keep it as a rectangle.
stretch vertex

We can prevent this by telling AutoCAD that we want them always perpendicular to each other. We can add perpendicular constraint. So I add a perpendicular constraint to the two sides. I try to stretch the vertex again.
1 perpendicular constraint
As you can see, the two sides are kept to be perpendicular to each other. But the other edges don’t. We have to add all constraint to keep it a rectangular.
all perpendicular
That’s the concept.
I don’t know if this gives many advantages to AEC industy or or. I know that MicroStation has this feature years ago, but it’s not become a popular feature. Maybe because Bentley Systems doesn’t have solutions in manufacturing industry.
There are some use that I can think of: in dynamic block. But I’m not sure if we can use it extensively in drafting. I saw the example in new features workshop, the sample is for manufacturing, not AEC. Do you have any idea, where we can use it in AEC industry? I will try to post some dynamic blocks using this parametric feature, and maybe you can suggest me how we can use it in drawings.

align=center borderColor=#000000>
Do you find our tutorial useful?
Please consider to donate via Paypal to support this site providing free contents!




Source: CAD Notes – Understanding Geometric Constraint
Go to Source: CAD Notes

ODA Cracks DWG 2010

July 17, 2009 in CAD, IntelliCAD

Today the ODA let its members know that they could download DWGdirect 3.0.0, the alpha release of the new version of the DWGdirect SDK that can read and write the DWG 2010 format.

The new SDK supports DWG as well as DXF files created by AutoCAD 2010. However, some new objects introduced in AutoCAD 2010 such as AcDbGeoData, AcDbSubDMesh and constraint related objects are loaded as proxies. But I guess that will change in due course of time.

When I met Neil Peterson, the CTO of the O…
Source: Everyone’s Blog Posts – IntelliCAD.net – ODA Cracks DWG 2010
Go to Source: Everyone’s Blog Posts – IntelliCAD.net