AutoCAD Inventor :: VBA Code To Constrain Two Parts Using Mate Constraint?
Apr 27, 2013
Im looking for VBA codes to crate mate constraint between two parts?
I have crated two parts and called up those two parts in assembly document as occurances
but i'm unable to constrain it.
View 1 Replies
ADVERTISEMENT
Oct 28, 2011
I've made 2 parts and I'm attempting to constrain them but I can't seem to get it to fit properly.The transition should fit at the opposite end of the 2 square cutouts with the square end of the transition inside the cylinder.
View 7 Replies
View Related
Jun 28, 2013
Lets say we have a plate with 100 randomly placed holes on it and 100 parts to attach to those holes. The parts aren't content center parts so they can't inserted in an easy fashion and the random hole spacing makes component pattern useless. The parts would normally be constrained using the insert command and you'd have to do all 100 separately. Would it be possible to make a script that would let you select the 100 parts then choose the selected geometry on one part and then a hole on the plate. It would apply that insert constraint and automatically select the same geometry on another part so you could simply select another hole. Then rinse and repeat until all the parts have been constrained to holes on the plate.
If something like that is possible it'd cut down the number of clicks greatly and also panning/rotating to select the different parts and holes on the plate. This isn't a daily thing we'd be doing, but it comes up enough in large assemblies it could be very useful. I haven't done any scripting for things inside parts/assemblies so I don't know what's possible while scripting.
View 1 Replies
View Related
Jul 15, 2013
I'd like to constrain about 100 parts at the same time to the same plane. They are the same part, copied over and over.
Is there any way to do this quickly? A component pattern is not an option in this situation as the spacing is very irregular.
View 1 Replies
View Related
Jun 28, 2013
I am trying to model a large Control panel assembly using Inventor Pro 2011. It comprises of a main assembly with several adaptive sub assemblies containing the various items. (Relays assy, label assy, fixing assy etc). All works ok until I start using Levels of Detail to enable me break the assembly into smaller workable parts. I.e. Left door, right door, main panel full, main panel no doors etc. These will be used to create view reps from for my drawing views at a later date.
The problem I am having is I keep getting constraints failing on parts which are suppressed in various levels of detail. An example of this Is when I go to right door LOD and do a rebuild all, I get constraint errors from item relating to the main panel which is suppressed. I can suppress the constraint causing the error but when I return to the full panel LOD the constraint is still suppressed and the parts appear In the wrong place.
View 1 Replies
View Related
Sep 22, 2004
after the first constraint I can't drag the part,
only thing i can do is use the rotate command
View 9 Replies
View Related
Jun 14, 2012
Whenever I am using mirror command in assly . The mirrored part do not get constraint again I have to use the constraint or I have to make that part grounded.
View 4 Replies
View Related
Nov 17, 2011
I am trying to assemble two parts together by the constraint feature, but the problem is that I mirrored one of the parts to make the other and now that I am trying to assemble them together they both light up showing that they are the same part. I am trying to make them to individual parts so that I can assemble them. Can I fix it in the Assembly or Part drawing?
View 2 Replies
View Related
Nov 29, 2012
In my assembly I've set up angle constraints between 2 Plane's of 2 parts (min: 40 deg max: 160 deg). If I move the parts slowly the angle constraints holds but if I swing it hard sometimes it flips and gets out of the angle constraint.
View 2 Replies
View Related
Oct 1, 2013
If I have two parts as occurrences in an assembly, how can I programatically constraint two workplanes (one from each part) to a flush constraint.
My problem is that I can get the Occurrences, say ...
CComPtr<ComponentOccurrence> pTube1Occ = ...
CComPtr<ComponentOccurrence> pTube2Occ = ...
...but I don't know how to delve into these two pointers to get hold of two named workplanes within them. I'd then pass the two workplanes (somehow?!) to the AddFlushConstraint function.
get_SurfaceBodies doesn't seem right and neither does get_SubOccurrences.
View 9 Replies
View Related
Jul 26, 2012
I can't understand why it takes so mant mouse clicks to correct/delete mate errors:
1) Select the Red Cross
2) Select the offending mate
3) Select Next
4) Select Next
5) Edit/Delete mate
6) Finish
7) Accept any other errors
8) Repeat above.
Is there a more simplified way of edditing/deleting mate errors?
Autodesk Inventor 2013-64Bit Edition
Intel Xeon W3520 @ 2.67GHz
Win 7 Pro
6.7 System Rating
NVIDIA Quadro FX 1800
View 1 Replies
View Related
Jun 25, 2013
Is it possible with iLogic code to set a parameter in a bunch of parts equal to another paramter?
I want some iLogic code that will go into my pipe parts and make the PL param = D2.
View 1 Replies
View Related
Jun 24, 2013
How Solidworks has the ability to output G-code to machine parts without the use of a seperate CAM software.
If Inventor has the ability to do this with some sort of add on? Or even if Autodesk offers a program that does this that would work well with Inventor or if I must use a seperate CAM software to do it. I have used Mastercam in the past but wasn't sure if there was an easier way to do so.
View 9 Replies
View Related
Mar 6, 2012
I want to make a vba code to calculate the Interferences between all parts of an Assembly.
First I modify all holes with thread. Next with de CommandManager I Launch the AssemblyAnalyzeInterferenceCmd. And finaly I modify all holes with thread back.
My question is :
How to wait until the AssemblyAnalyzeInterferenceCmd is finished to continue the code.
Sub Interferences()
Call BeforeAnalyzeInterference
ThisApplication.CommandManager.ControlDefinitions.Item("AssemblyAnalyzeInterferenceCmd").Execute
Call AfterAnalyzeInterference
End Sub
View 4 Replies
View Related
Jul 30, 2012
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).
View 6 Replies
View Related
Dec 15, 2010
How do i show and close the parts list iso-main menu with code?
View 1 Replies
View Related
Jun 26, 2012
I've managed to hack together some code to draw a rectangle and dimension it. Now I want to constrain it to the origin. I figure either using two dimensions from a top/side to the origin and setting the dimension as half of the other respective dimension would work. Or constraining the center point of a top/side line to be vertical/horizontal to the origin.
The problem I'm having is I do not know how to reference the origin. So until I figure out how to reference the origin point I can't use either method.
Public Sub DrawSketchLine() ' Check to make sure a sketch is open. If Not TypeOf ThisApplication.ActiveEditObject Is PlanarSketch Then MsgBox "A sketch must be active." Exit Sub End If ' Set a reference to the active sketch. Dim oSketch As PlanarSketch Set oSketch = ThisApplication.ActiveEditObject ' Set a reference to the transient geometry collection. Dim oTransGeom As TransientGeometry Set oTransGeom = ThisApplication.TransientGeometry Dim oUOM As UnitsOfMeasure Set oUOM =
[Code].......
View 2 Replies
View Related
Feb 28, 2013
I am trying to CAD a model rocket I just made so I can test the aerodynamics of it. I have all of the individual parts made in inventor, but I am having trouble getting the fins on the rocket.
How can I constrain the fins (which have a flat face) to the outside of the cylindrical rocket tube? The photo shows the fin and the face (the narrow and long face) that I am trying to constrain to the tube.
View 7 Replies
View Related
Oct 19, 2012
SO what is everyone say, trick about speeding up constrain execution. I have started working on this new project with 2013. And i'm finding myself losing alot of time. Basicly what i do is insert part from our database or content center and assemble them. So 80% of my activities on inventor are constraints. Right now i have this assemblies 175 / 156(small to me). And executing a constraint is minimum 4 seconds each time. If you consider that about 3 contraint is needed for each piece and final total part will probably be around 1000. i'm losing alot of time here
Yeah, i am not using preview. Why is inventor recalculating that much each time? Is it doing a rebuilt after each constraint?
What have you done that really increase the excution time of constraints?
Workstaion is
Windows 7 64bit
Intel Extreme i7cpu I975 @ 3,33
12bg ram
4 ssd in Raid stripping.Nvidia FX3800
Inventor 2013 SP1
View 9 Replies
View Related
Sep 5, 2013
How to become able to fully constrain a sketch with an image in it? Always stalls at 1 dimension required. Try a sketch with only an imported image.
View 2 Replies
View Related
Dec 31, 2012
I am trying to determine how to properley constrain the assembly below, so that the compression of the rubber gasket will be properly indicated.
Currently I am seeing the deflection of the shelf in the downward direction, but I do not see any indication of stress in the gasket behind.Currently the gasket is "bonded" to the steel tube the screws are bonded to the shelf bracket and the steel tube.
I put in "work axis" at the center line of the shelf bracket and the CL of the gasket, but I can't find a way to constrain to a work axis.The file is too large to upload here...
View 1 Replies
View Related
Jan 9, 2013
I have one problem and I would like to get your opinion how I could solve this.
I can't share models I have problem with, but I made another with the same problem.
I have two parts - one with slot, another with "pin". How to constrain the "pin" to always move in slot?
I had some ideas but non of them worked for me:
1. Use the Transitional constrain came first in mind, but it gives unsuspected results in this situation. Pin part is jumping around and ends up contrained in another place ir should be.
2. Contact solver kind of do the job, but it works quite bad. I gives no control or accuracy (i can not control how much pin is moved out)
3. I even thought of point on 3d sketch constrain, but it can not be done
How you would suggest to constrain the movement? I hope I stated problem clear enough.
I attached model files. I use Inventor 2013
View 4 Replies
View Related
Nov 25, 2012
I'm trying to make a constraint allowing the dark smaller cylinder (1) to run in the copper track (2). I want the larger cylinder (3) to be able to rotate around its own axis, while everything is rotating around the Z axis. I've successfully constrained the parts so that all the parts can rotate around the Z-axis but when I constrain the smaller cylinder (1) with the tangent constraint with the track (2) the smaller cylinder is not able to move around on the face, it's just glued to the face.
I want the smaller cylinder (1) to recognize the copper faces as solids (so that it can't intersect the surfaces), this would allow the proper movement. I've attached an image of the parts.
View 1 Replies
View Related
Dec 1, 2011
How is this accomplished in Inventor? The 3D sketch environment seems intentionally crippled. Many of the constrains are not available, and the "include geometery" command refuses to include the origin (or any other planes and axis for that matter).
View 4 Replies
View Related
Jan 10, 2012
What is the difference between Constrain and Assemble?
They both seem to create the same mating constraints, but Assemble doesn't work with adaptive parts.
Any other difference (other than the interface)?
View 1 Replies
View Related
Apr 5, 2013
Is it possible to constrain sketch entities, (like lines), to a plane, (make the line and plane coincident)?
View 2 Replies
View Related
Sep 27, 2012
I am trying to replace a custom part - created from a content center part - with a copied part with a different name. (I am using the replace tool in an assembly.) However, Inventor is not replacing the part with the part I pick but rather the content center version of it.
View 3 Replies
View Related
Mar 30, 2012
On the main sheet of my drawing I have the overall Parts List. Shows almost all parts except for the few that we don't want to list. On the second sheet I inserted a Parts List to show only parts that are shown in a detail on that page, made the rest non-visible.
On the main sheet there is an item (#13) that has a QTY of 3. Two of those Three are optional parts. What I'm trying to do is insert a custom part into the Parts List, give it an item number of 13A and put in the description "OPTIONAL", then do an Override in the balloon to show 13A.
I get it in the Parts List, Apply it, close it, save the drawing. Looking at the Parts List, item #13A is there, but item #14 is gone. I go back into the Parts List and 13A is there and there's a blue box around the item # and the description. I uncheck Static Value and number 14 shows up (item # and the description).
Then I go over to sheet two, open that Parts List and it lists 13A at the bottom with all the info I added in sheet one and it's non-visible. Go back to sheet one, open the Parts List and there is no 13A to be found.
View 9 Replies
View Related
May 2, 2013
I am working on an assembly that is designed around a box (bounding box) that could change size. I modeled the bounding box and placed it in a new assembly file. All other parts have been created within the assembly by referencing that bounding box with starting work plane and project geometry.
The problem comes in when I change the bounding box dimensions. The work planes for each additional part, which were defined by the faces of the bounding box, do not move when the sides move. Also, my projected geometry is not updating correctly. This is a simple box, with all 90° corners. So, all associated parts (at this point) are just rectangles.
View 4 Replies
View Related
Aug 21, 2012
My parts list on my idw do not update when I make changes to the model. Specifically, I have deleted a bolted connection on my design and replaced with a different components but the parts list table does not update - all I see is a lightning bolt in the browser next to the parts list but I cannot update it here.
Autodesk Inventor Professional 2013 SP2 64-Bit Edition
Windows 7 HP Z400, Intel Xeon W3550 3.07GHz
12.0GB RAM, ATI FirePro V4800 (FireGL)
View 2 Replies
View Related
Aug 7, 2013
I was using virtual parts to add nuts and bolts to a drawing in 2013
I can make a VP bolt in the assembly, no problem, set it's size, weight, etc.
In the VP itself, there is no option for number of bolts I want it to emulate. For arguement's sake the weight was 1 pound per bolt (they are big bolts).
I can go into the BOM and say quantity 60, hit done and save the assembly.
If i open the drawing, the parts lists shows 60lbs for the 60 bolts total - which it should when summing the weight.
The problem is the BOM/assembly. If the weight of my assembly (without bolts) is 10,000lbs, the assembly sees the VP weighing 1lb and says the total weight is 10,001 lbs. Am i going to have to pattern a fake part to get this to work right? Shouldn't the total weight take into account the quantity set in the Bom??
View 2 Replies
View Related