AutoCAD Inventor :: Access Application Options Through ILogic?
Feb 10, 2012
I am new to iLogic and trying to access the "Application Options" under the "Tools" tab. I am trying to grab some information from a couple of fields but it seems that I don't have the right coding or Snippets that indicate how I would do so.
When I click Application Options it opens up, but the window doesn't show up, eveything else in the program gets disabled and I am able to hit Esc to get out of it.
I'm looking at a way to edit the Application Options tab when a particular file is opened. For example, by loading file "template" it would set constraint options to a standard, set the background color of the application, etc. giving me a songle file to load my preferred settings.
For a first run example, need code such that when I open the file and run the rule, it would change the username from User to NWilson?
I'm very weak with the API code tools and structure, and I have zero VB experience. My train of thought is as follows:
Dim x = ThisApplication.GeneralOptions.UserName If x = User Then ThisApplication.GeneralOptions.UserName=NWilson
After setting the Application Options-File tab paths to our company standard and manually restarting IV the paths all revert to "%PUBLIC DOCUMENTS % default paths. Our IT guy is having the hardest time tracking down the root cause, Both users are on stand alone licenses.
1. Where does IV pick up these default file paths? Can I modify that .xml manually as a workaround?
2. How to identify the folders to look for that don't have adequate red-write permissions?
If we as a company already have our Inventor 2011 seats installed and we now want to 'push' out the company standard application options is there a way to do this other than using a manual import?
How to close an application (*.ipt & *.iam) by ilogic code?I tried to use...ThisDoc.Document.close (True) to close it.Indeed, it can close the application, but there is an error occurred as following:
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
how to avoid this error or any other way to close (or exit) the application?
These Application Options settings change not infrequently and for reasons that I cannot be certain of:
Sketch: Enable Heads-up Display Edit Dimension when created Look at sketch...on...creation Part: No new sketch goes to x-y plane
This may happen after when I open parts from Inventor 2011 (maybe 2010) into 2012, then create a new part. I would expect the 2012 App Options to be the master, so I don't know why a legacy part would be allowed to change those settings.
Inventor Professional 2014 Windows 7, x64 Dual-core i7, 8GB RAM NVIDIA Quadro FX 880M HP Elitebook 8540w
I created a iLogic routine to generate a STL file if the iProperty "Printed Part" is set to YES.
I am getting an error when Ln33 oTranslator.SaveCopyAs(oDocument, oContext, oOptions, oData) is executed.
If iProperties.Value("Custom", "Printed Part") = False Then 'False = "NO"ReturnElseMsgBox ("Selected to output STL for printing" & vbCrLf & "Disable by setting the custom iProperty:Printed Part to NO")End If'Create _OUTPUTS directoryoPath = ThisDoc.PathoFolder
I am trying to use the iProperties.Value("part1", "Summary", "iProperty") function to get the filename or complete filepath of a component within a subassembly. I know that these iProperties exist because I can insert them onto a drawing, and I see them in the general tab of the iProperty window.
I get an error message indicating that the General tab can't be found. How might I go about getting this filename iProperty, or is there an easier way?
I have a program that populates an access database with part parameters. Each Inventor part can look up its own parameter values from the database when supplied with a single parameter, the ID number of the database record. The ID number is derived from a blank part that the program also updates. So in a nut shell, the program populates the blank part's parameters with all database ID numbers that would make up entire assembly. Those parameter values are derived to all the parts in an assembly. This is by far the fastest most efficient way I've found to rapidly generate an entire assembly. In a matter of seconds I can have a new 1000+ part assembly.
The rumor that Inventor will eventually sever ties with VBA has put this whole process in jeopardy. So I have been looking into using iLogic to perform the same task of looking up the data from Access. I know that iLogic has Excel functions built into it, but because the original program is Access based (changes this is not an option) any way to use iLogic to retrieve data from Access.
how to access the drawing sheet revisions using Ilogic.My company is wanting to start making the default initial rev on a drawing a "-" and inventor does not like to keep this when brought in as a template.
So like normal I am trying to trick it into having the dash until a rev is actually added.
How to access the color for a particular hatch within a drawing using iLogic.
I would like to color the hatching for parts based on paramaters besides material.
ie.
Purchased parts = Green Hatch
Refrence = Grey Hatch
I would hope one could loop through the views looking for hatches, and once found, check the part they are associated with, then based on an "if then, change the hatch color and move on to the next pattern.
I'm trying to start Excel and show the results of some BOM items I have written to a file like item number, part number and description.The task is to find components in an assembly that have a part number longer then 39 characters, due to ERP limitations.
What I´m doing is cycling through all BOM (structured) items on first level and check if the part number is longer then 39 characters.
I write these item number, part number, description to an Excel file (temp.xlsx), so the user sees which Components he has to check for the Part Number (make it shorter). I figured it would be best to do that with an excel file, so the user can save the results to a new file or just check it.
Values will be erased from the temporary excel file afterwards.Here I can't figure out how to start the excel application and open the file in an actual application window if possible.
how to list the results with plain iLogic that would do it too or some other solution to list a snapshot from the BOM.I guess there is no way to add your custom BOMViews ?
I would like to be able to use iLogic to get the value of the Comment field of a model's parameters. I have some text there that I would like to display in a sketched symbol. The attached image illustrates what I am seeking.
I am currently trying to retrieve data from a MS Access Database, we currently have iProperties with number values in them. An outside programmer created a code which takes these values and exports them to an MS Access Database, where they are then translated to mean something.
Instead of exporting those numbers, I want to use them to find what they ACTUALLY mean within the database and bring that information back into iLogic. (ie. 123456 actually means "1/4 Flat Bar Steel")
In short, I wish to access the MS Access database through iLogic in order to read information from it.
I have searched for the better part of 3 hours but have not found a good answer or example code of this situation. I am not that experienced in programming, but have worked with the API before for developing Automated Drawings and have an understanding how to navigate through. If there were to be some example code, I can begin to understand the process quite well through this method as well by seeing how to go about coding this.
I'm struggling with accessing multiple AutoCAD 2007 instances via COM. I have tried retrieving objects from ROT using monikers, but only succeeded in getting AcadDocument objects only. Is there a reliable way to achieve my goal?
My Autocad 2011 gets stuck trying to open Options in whatever way I try to access them. I end up having to close it down. Never had the problem before today so not sure what has changed..
I have just installed X5 and need to know, exactly, what options are supposed to appear in the Application Dropdown. Is, for instance, Power Trace supposed to be there (in draw and photo, etc). The reason is that I cannot find it. It makes no difference if there is a document or not - it is simply not there, nor is it referred to anyplace on the page.
I want to align various layers to different parts of my document. I have noticed in the past that alignment options sometimes display at the top of the screen, though they are not doing it for me now and I can not find an alignment panel.
1. How can I access the alignment options? 2. From a graphic designer's perspective, should text centered on a document generally only be used for formal style invites?
I'm using PSP X4, have an image open in edit but I'm not able to add any layer(s). None of the layer type options will remain highlighted for me to choose when I go to new mask layer or new adjustment layer.
I am trying to get the desktop path in an application I made to modify and save the parts list of an IDW. I find this code all over the interent and it looks exactly like what I need:
However when I try to use it it's like the "My" system object isn't there. I'm quite sure it has somethign to do with VBA instead of the normal VB. How can I accomplish getting the current user's desktop path with inventor VBA?
I'm just setting myself up on a new PC, and updating a few things along the way. I've gone from VS2005 to VS2010 express, and migrated my projects along the way. The migrated projects worked OK, but I've just started a new project and I can't figure out how to add a start up application for my project.
On the Debug tab in Project Properties, there's no option for startup application like there was in VS2005
Inventor CAD Administrator || Autodesk Inventor 2012 Certified Professional Autodesk AutoCAD 2012 Certified Professional|| Bachelor of Technology (Mechanical)
adding a button to "Export" tab of Application Menu of Inventor. I am using Vc++.
The information that i found is from UserInterfaceManager i could get CommandControls and add a button/ Seperator here. Need to add this inside the "Export" tab.
I am developing a web app ASP.NET MVC 3, which will read the properties files of Inventor (dwg, idw, ipt, iam). Read the properties of these files is by using objects Apprentice Server, which provides Autodesk Inventor View 2012. Connection objects is done through the library RxApprentice.tlb.
Code is shown below:
public ActionResult Index () { try
[Code].....
While debugging applications on Web-server - IIS Express 7.5 development environment Visual Studio 2010 application runs without errors. After publishing a Web application on IIS 7.0 the following error: "Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))».
A tried: change User Account Control Settings, and set permissions to configuration DCOM objects in Component Services - no results.
Is it possible to read the file properties Inventor of Web applications, and how to do it?