AutoCAD Inventor :: Use API To Add Coincident Constraint For Multiple Entities
Nov 19, 2013
I have created multiple sketch entities like line, arc, circle etc. using the Inventor API's. Now I want to add the coincident constraint between start point of line, start point of arc and center point of circle.
I have added coincident constraint through UI(Please see attached snap). The same I want to add using Inventor API's. which API I should use to add the coincident constraint for such multiple entities.
I have noticed what I consider a bug in AI2009. When trying to delete a coincident constraint using the show constraint command, it is impossible to do so. All other constraints I can delete while I am in the "show constraints" dialog box, but not coincident constraints. As soon as I get out of the "Show constraints" command, the yellow dots are still showing and I can then hover over them and they highlight so I can delete them. Is this how it was intended or should I be able to delete them like the others while still in the "show constraints" command?
Coincident Constraint to be offset? I'm trying to constrain a table and a MTEXT object together but they are "mating" at their Insertion Points. I cannot successfully "move" these two points, keeping them constrained.
I realize that i don't understand how to use constraints (specifically how to "fully constrain" entities) in my dynamic block.
attached is a sample of what i've got. (note the small circle at the insertion point that has 4 lines in it - i used these to base my angle constraints on)
upon inserting the first instance, everything behaves as i'd like. but once i stretch out the bubble, it seems to go back and automatically update the definition so that the next instance i insert is using the first instances dimension as the starting point.
How do I make multiple views (Front, Top, Side & Isometric) when driving an assembly constraint? I want to be able to show an assembly moving from different perspectives all at one time.
Inventor 2013 Windows 7 Professional 64-bit SP1 HP EliteBook 8470w Processor: Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz Memory: 16 GB AMD FirePro M2000 3D Connexion SpacePilot
I am designing a vertical axis wind turbine just for some practice (just started using Inventor) and everything was going smoothly until I tried to "animate" it spinning. First, I set up a work plane that goes through the center of the structure, and then I clicked angle constraint "explicit reference vector." After watching several youtube videos, I figured that I should click on the work plane, click on another reference point, and then click another point that would be orthogonal to those two (right?). Well after I choose the first point, Inventor will only allow me to choose the center axis as the second option (which I think should be the third option).
Is it possible to select entities of multiple layers?
I've looked at... [URL] .....
...and tried the following code.
string[] layerNames = {"1", "2", "3"};TypedValue[] tdv = new TypedValue[(layerNames.Length * 3) + 2];int i = 0;tdv[i++] = new TypedValue((int)DxfCode.Operator, "<or");foreach (string ln in layerNames){ tdv[i] = new TypedValue((int)DxfCode.Operator, "<and"); tdv[i + 1] = new TypedValue((int)DxfCode.LayerName, ln); tdv[i + 2] = new TypedValue((int)DxfCode.Operator, "and>"); i += 3;}tdv[i - 2] = new TypedValue((int)DxfCode.Operator, "or>");SelectionFilter sf = new SelectionFilter(tdv);PromptSelectionResult psr = ed.SelectAll(sf); This code gives me an error in the PromptSelectionResult.
There are blocks in the drawing, each containing several nested entities. Need a command which would find all the nested entities which got into the selection area provided by user (not necessary to select entities, just get the ids). GetNestedEntity() does what I need but for a single entity only.
Selection of 'Trim' command does exactly what I need. How could I achieve the same behaviour?
I was wondering if there is a way to change multiple entities of Mtext. I tried CHT but the options are limited. Is there a way of say changing the color?
The 'application' I am trying to make currently adds entites to a drawing. Each entity has data associated with it but also part of a tree of infomation so I store xrecord data along with the objectID in a dictionary tree within the drawing.
I want to be able to select multiple entities and have any matching data shown in a palette. The same way the properties palette behaves.
I have it working but I can see AutoCAD crunching the data. It cycles through the selection set and the dictionary tree extracting entity data until it finds an ID match in the xrecord.
How the properties palette works so quickly or how I could improve the speed.
I am trying to save road centerlines with labels to an AutoCAD drawing. On the Output Tab I click Save Current Map to AutoCAD. When I open the AutoCAD drawing I created each letter in the label is a seperate text entity. Like Main St is not one entity, it is 6 different text entities.
I'm modeling cables running through a series of cable clamps. I'm working in an assembly with my structure as one part, clamps as seperate parts, and cables as separate parts. I modeled the clamps first and am using them to create my 3d spline to run the sweep. The clamps have moved several times and each time, the sweeps (cables) do not update to follow the new clamping path. I have tried multiple ways of solving this.
I've tried to redo the splines using "Include Geometry" and running the spline through the centers of the clamps. I've also deleted the constraints (which for some reason turn into fixed) and reapplied them as coincident constraints. However, once I setup these coincidences, they always change back to fixed.
In a last ditch method, I've created 2d sketches at EVERY clamping location (yes that's alot of sketches, time and effort) and projected the circular geometry to get a center point. This has seemed to work, but is so much work, there's no way we could use it regularly.
I have a block which represents a piece of equipment on a factory floor. It has two subcomponents which are blocked with the main equipment. Consider a rectangle and two smaller circles blocked together. Each of the subcomponents (circles) has a point parameter and a move feature so that the components can be moved independently from each other and from the main equipment.
Here's the issue: If a user accidentaly (or purposely) places the grip from one of the subcomponents snapped to the grip of the other subcomponent, then the two seem forever attached; when I try to grab the grip of one of the subcomponents to separate them, both grips get selected and both components move together. At this point the two components appear to be inseparable with the grips permanently joined.
Here's the question: Is there a way to separate the two components once their grips are made coincedent? Or is this a case of "just don't snap the grips together"? I'd like there to be a way to pull the components apart.
Batching processing method to remove the coincident vertices of polyline (2D autocad 2012 version).
These polylines are imported from other application into autocad for plotting contour purposes. The coincident vertices give problem to lisp program for drawing a cross section profile.
We're having a problem with Ordinate dimensions. When we dimension to a radius corner, we dim to the "implied intersection" of the two lines, rather than to the center of the radius. We make a sketch with the two "tick marks", then dim to the intersection of the tick marks.
Ordinate dimensions are not allowing us to pick the intersection: it wants to put two (or three) dimensions, one to each end of one or the other tick marks (see attached). We use Ordinate dims about once a year, but I'm sure I remember being able to ordinate dimension to the tick marks.
I have an assembly which has components mated to a radial surface, I need to locate the center of a round slot against an axis, I have X Y coordinates, how can I constrain that part to those X Y coordinates?
Maybe I've just been doing it wrong for the last 5 years, but the Angle constraint is obnoxiously unpredictable. When I constrain a part in an assembly with an angle constraint from the assembly origin plane (or anything else), Inventor always has two solutions; a positive and negative.
Is there something I'm missing here, or is just a design flaw we have to live with?
I want to import my excel table to autocad. but when i try to do this, the table is not correctly import. im using paste special command and past to link. if i paste my file excel, image and other formats, i can not plot my draw. i attach my excel file.
note: i found a software that name is autotable. but its 150$. we dont want to buy an other software.
I am trying to place a tubes cylindrical surface to another tubes cylindrical surface using add constraint. How do I specify which side of the target surface to apply the constraint ?
I have a question regarding a transitional constraint between a pin and a surface within an adaptive assembly.
I would like the pin and the surface to be transitional only when the two parts "interfere" with each other.
At the moment with the example attached part A is remaining tangent to part B, restricting the necessary movement of part B to function properly in the mechanism.
In simplified terms I need part B to be able to break free of the "transitional constraint" of part A under certain movement conditions within the mechanism.
Is there a way to expand the constraint window so that I can see my entire parameter formula? In the image below, my equation is cut off in the "offset" window. Or am I supposed to be inputting the parameters in some other manner?
I'm having a really difficult time maintaining my parameters when making changes to the part I've made in the attachment. The control parameters for this part are:
-100 mm distance between 15mm circles -1 of the 15 mm holes -30 mm hole
I am new to inventor but I would also like to be able to set up my constraints correctly. I'm also not sure if my sketches are ideal for this part either. I usually get an error concerning my fillets from the base to the center support beam when I try to change the 100 to 75.
I've assembled a bolt and a slide block that is constrained to a base plate and am able to put everything in motion. I have the slide block constrained to slide the distance of the base plate and when I reach the end the bolt continues to rotate when, if this was a real part, should stop. How can I get this bolt to stop once the slide block reaches its ending constraint?