AutoCAD Inventor :: Running Commands Using API / How To Provide 2 Inputs Through API
Feb 6, 2013
how to Run Commands Using the API. And he also shows API can provide one sets of input to the command.
In my case, the Inventor command "analyze interference" need two sets of inputs. I tried to feed the commands with two selectset input throght API (see attached code). But the command looks like only take one set of them.So the behavior is not what I want.
So if it is possible, how to provide 2 set of pre-defined input to inventor commands throught API?
I haven't had enough of an application to justify trying to figure it out. At this point however, i've designed a small conversion form that can be called by our engineers and allow them to convert between various units. I'd like to have a button though that allows them to call up the Quick Calc application from within AutoCAD. What i'm wondering is how do i actually call a native autoCAD command? Is it possible and if so where could i find documentation on the syntax. For what it's worth i'm working in C# in VS 2010.
AutoCad sticking on commands like copy selection and move tool, It is running very slow and when saving it says there is no system memory, although my Computer has pleanty of memory (the local disk has over 200GB space)
PC has correct specification for AutoCad 13, and I have never had problems until this morning-
1. Why is it when I do a 3D sketch, make the sweep, then "Return" I always get a constraint error? It tells me that I made a constraint to geometry which is no longer available. The geometry IS available. I always have to delete the constraints just to move on. I'm sure it has something to do with the planes or axis I created while doing my 3D sketch.
2. Why does Adaptively equal inefficiency? The more I use it the more I have to fix those darn cross-part association failures. It takes less time to not use adaptively and use the "old fashion way". adaptively rarely, if ever, works correctly with sheet metal parts. I say again - Junk.
3. Would it be so difficult to give us buttons for standard views on our tool bars? You know, like AutoCAD - which I'm sure you have heard of by now. An XY, YZ, XZ, button is all I ask for. You went to the trouble to give us RMB Isometric view but stopped there.
4. Is it too much to ask to provide buttons on the toolbars for Object Visibility? Why make me go through the View, Object Visibility menu three times in a row to turn off User Axis, User Work Planes, and User Work points. It will be six times in a row if you need to turn off the other stuff. Heck, at least make the darn menu tree stay open until I've selected multiple objects to turn on or off.
I have tube that has been generated on frame generator and notched to run into the side of another tube.
Is there anyway of unfolding the tube to provide a flat profile.
What i ultimately want to do is print the flat pattern off at 1:1 scale, cut it out and wrap it around the actual steel tube to be able to trace the profile onto the tube so i can cut the profile roughly before offering the two tubes together.
I'm experiencing many problems when modifying parts measures, adding extruxions or doing holes/threads.
Always same error: Operation doesn't produce a significant result. Redefine inputs
If Inventor is totally closed and reopened, I can modify and update parts without problems for 10-30 minutes, until first error, then it gives errors until closing again. Usually, but not always, operation preview begins to fail before first error. So it's quite difficult to reproduce.
I've tried uninstalling everything after Autodesk installation, windows updates and Firefox plugins (well, even Firefox itself) included. I've tried all hotfixes and updates that Inventor 2013 gives (NO SP1), even I've fully reinstalled Inventor. I've been using Inventor from Inventor 7 and never seen such errors.
I've attached a part from the pictures. Anyway, as errors are not always happening, maybe you won't have any problem with it.
PD: Also, a little problem is that with this Inventor version I can use the CTR+c CTRL+v to copy parts into an assembly. I can use the context menu but no shortkeys.
Autodesk Product Design Suite Premium 2013 (Installed yesterday, so with all official updates) Windows 7 64bits Proffesional SP1 Intel(R) Xeon CPU W3565 @3.20GHz NVIDIA Quadro FX 3800 8GB RAM
Have a question regarding multiple daylight subassemblies, don't know if it is possible. So I have an assembly with a trench SA in cut condition and a project to surface in fill condition, I built the corridor with this assembly and most of things look fine. However, there is a short stretch (in cut condition) of the corridor that I would like to modify such that a trench is not provided. I know I can create a new assembly with my desire condition, then create a new region and drop that assembly there, but I am wondering if there any other way to achieve my goal without another assembly.
Rather than scaling down the model which i have in imperial to metric, is there a way to have my dimension inputs in metric without converting it manually? Btw, if version matters i am using P&ID 2009
Often, screen are full of information..surface, alignments, corridors, widenings.I'd like a tool to have a fast way to view/hide information related to my alignments and corridors. In example.
Is there currently any way to integrate voice commands into Inventor? It would be an incredible time saver. Software such as Dragon Naturally Speaking and IBM ViaVoice offer this technology for some Windows applications. I was just wondering if it could be applied to Inventor? If not, can we expect something for R12?
Any way to turn off HUD during commands? Seems to pop up right where I want to select geometry. I came across something about it for 2012 not being an option to turn it off but may be one for 2013
I have been using the ordinate set command to place set dimensions on an Inventor drawing in version 2012, I was looking for a similar way to rapidly add dimensions for hole diameters .
I'm trying to create a pline in a dynamic block where the length is determined by two values I would input into properties or as attributes.
The first value 'A' will be a ground surface elevation
The second value 'B' will be a ground water elevation
I would like to the pline to have a length of A minus B.
I would then also like to have mtext (or any other method of display text) to display the values of A and B.
For example, if I have a ground surface of 102 and a ground water of 91, my line length will be 11, and I can display a label of '102' at the top of the line and '91' at the bottom of the line.
I've created dynamic blocks before, but none that have used an expression of two values or having to display inputted values. I'm not really sure where to start with this, or if it's even possible.
I just installed the student version of Inventor 2011 on my machine. Everything went well but when I double click the inventor icon nothing happens. Autocad mechanical and TruView work fine.
I am running Autodesk Inventor Pro 2012 and am trying to start learning to use my dynamic simulation and FEA features. I recently just purchased the Up and Running series by Wasim Younis. I was working with his models on the multiple actuating jacks and noticed none of the features are constrained in the assembly. Now my question is, is this how these should always be setup? I am working on trying to set up a simulation of a frame I am rotating 90degrees with 2 hydraulic cylinders working together so as to use the strong side of each of the cylinderds when it goes each direction. The way I have it set up I have the whole thing constrained. The 2 cylinders are constrained so that they have their stroke 17.23" and the turntable frame is constrained to rotate 90degrees. So should I remove all constraints to run dynamic simulation? I attatched 2 photos to show the starting position (travel position) and ending position (working position).
Whenever I customize some keyboard commands, they always seem to reset after I close and re-open Inventor. I'm not quite sure how I could be missing something. I've gotten very use to these commands in previous versions. Once I setup my commands, I am able to use them for the session.
I used to have an A1 printed sheet of all of the ilogic commands, functions, syntax or whatever you call them. It was all nicely grouped and colour coded etc
Unfortunately I have since moved jobs and lost this and neither me or google can find this again, any copy or link? it may have been a pdf or excel format.
i am having so much trouble getting my photo book order. It is all don't and ready to be ordered. When it is done preparing for order i get a online service error 3:OLS refused to provide a preview for file.
I'm trying to write a script which would process all the ipt files within assembly and launch certain functions according to a ipt file type.
I've already made such script for dimensioning parts which work for standart parts but not for metal sheets.
Here it is:
Sub Main Dim oApp As Inventor.Application = ThisApplication Dim oAssy As Inventor.AssemblyDocument = oApp.ActiveDocument For Each oSubDoc as Inventor.Document In oAssy.AllReferencedDocuments If oSubDoc.DocumentType = kPartDocumentObject Then Dim oPartPropset As Inventor.PropertySet = oSubDoc.PropertySets("Design Tracking Properties") Dim oPartParam As Inventor.PropertySet = oSubDoc.PropertySets("Inventor User Defined Properties") Dim oParameter As Parameter For Each oParameter In oSubDoc.ComponentDefinition.Parameters oParameter.ExposedAsProperty = True Next oParameter If oSubDoc.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then Dim d1 = Round(SheetMetal.FlatExtentsLength, 1) Dim s1 = Round(SheetMetal.FlatExtentsWidth, 1) Dim g1 = Round(Parameter("Grubość"),1) FindOrCreateProperty("Długość [mm]", d1, oSubDoc, True) FindOrCreateProperty("Szerokość [mm]", s1, oSubDoc, True) FindOrCreateProperty("Grubość [mm]", g1, oSubDoc,
[code]....
this code distinguishes parts from sheet metal, and launches appropriate functions to get their dimmensions. It just doesnt work for metal sheets somehow. Seems like SheetMetal.FlatExtentsLength is performed from within the assembly, not part as it should be. I must have the addressing wrong. I've tried many things and different functions but nothing works for sheet metal parts.
This code might also be useful for different purposes. I'm also trying to lunch some external scripts for each part within an assembly, but there is no direct function for that (there is one only for internal scripts , based within the file).
The company I work for has requested what PC specifications Autodesk recommends for use with inventor. We are currently using 2011 but would like to have the recommendation for the latest release. We are having major issues with crashes, and running out of memory constantly on working with images as well as routing tubes in assemblies. Any recommendations for PC specifications I should report?
The problem is, that if you uninstall all things autodesk, and run a registry cleaner (or delete that key by hand), and then install only inventor view 2013 and run inventor view 2013, it will *not* create that key in the registry.
This makes it impossible to run the apprentice thru the COM mechanism, even your SDK samples will not work.
(i suspect (but havent proved), the bigger problem is on a brand new machine, install and run only inventor view 2013 , you still can't use the apprentice server.)
The 'workaround' is to install and run inventor view 2012. running inventor view 2012 will create the registry key. After that, running inventor view 2013 will happily update the key's value to the appropriate place.