AutoCAD Inventor :: Filing System / Active Project
Jul 27, 2013
So here's the situation: I have been importing parasolid files into Inventor. When doing so, a folder named "Imported Components" would pop up right next to the parasolid file, with individual Inventor part files of all the assembly parts in the parasolid file.
Where are the options to add objects & ActiveX objects to the VBA project? i can reference them but thats it... Have i got to do everything late binding or can i drag an object onto a form in design view?
We have had this issue now for a couple years and don't know what is causing it. We are using vault pro with admin set single project file. A user can work for months using correct.ipj, then randomly at 10:42 they will notice the active project was been changed to some other temporary project location "c: emp.....". Then it will happen to different users at different times. I cant seem to find any correlation to anything. I can only imagine that it is somehow triggered from the vault addin.
I am trying to write code to set the active project across a network. In the code below I have hard written the address in to our main server named "Rusk" . It fails with an error message "The parameter is incorrect". I have tried this using a mapped drive as well with no luck.
I think it may be a permissions error, I am running Vista 64bit. Inventor version 12. If it is a permissions error, are there any sample code snippets out there I can use to set the permissions?
Public Sub SetActiveProject() Dim ProjectID As String 'variable to hold Project ID Dim ProjectAddress As String 'variable to hold an address path 'Verify the project ID is entered If UserForm1.TextBox3.Value = "" Then
I encounter a problem that I do not understand. I created a little C# routine for Autocad Electrical (2011 and 2012) which adds some drawings to the current project with the following command:
(c:ace_add_dwg_to_project dwg2add paramlst)
This method works perfectly. With the parameter list you can set the Section, Sub-Section and Descriptions of the page properties, exactly what I want. When I start the routine, I check which project is active. If the wrong project is active, I activate the appropiate project with the following command:
(c:wd_makeproj_current wdpfnam)
So, when I want to add drawings to project A and project B is active at the start of the routine, I activate project A and the drawings are added. When I want to add drawings to project A and this project is already active, the drawings are not added to the project. The method mentioned above to add drawings returns nill, which means a failure.
Why is this happening? Is this a bug of Autocad?I already tried to always activate the project I want to add drawings to, but that doesn't matter.
I am having an issue when opening and saving files is very slow when I have a project active in the Project Navigator.
If I have an active project, and I open a file via Project Navigator or Windows Explorer, the process hangs for 15-20+ seconds at the 'Opening C:xxxxxxxxxxxxxxx.ac$' point, where it is creating the temporary file.
If I 'Close the current project' in the project browser and open the same file via Windows Explorer, the process takes less than a second.
I do not have vault installed and I am trying to add sub files to my project. As of now my project has to find many of my files and I do not want to copy and past them into my project folder as this will mess with my parts numbering system. I want only one part / assembly file per part. I assume that you can do this with the project dialog box or some other system tool I just can not seem to figure it out.
Since Edge only has rectangles and ellipses built in as available shapes, how to I/we work with polygon shapes and active mouseover areas INSIDE of these shapes and non-active mouseover areas OUTSIDE of the shapes?
Problem/symptom: when I import a polygon, be it any file format from from Photoshop or SVG from Illustrator, a rectangular border/background (transparent) gets applied, leading to this rectangle defining the mouseover area of the shape - and not the shape itself (be it a star or whatever).
WHAT I WANT: the very shape defines the mouseover area. How do I achieve this?? See examle below:
I'm new to the style library and how to take an existing drawing that was created on one standard, and changing it to another standard I just created. The new standard has different dimension styles, text, and layers. I've added all the styles to my style library and I've set the new standard to the active standard in both the styles and standards editor and the document settings. If I create a new view, it comes in on the new standard, but the existing views are still on the old. How to I get the existing views on the new standard?
How you can keep constraints active in sub assemblies so that when I am moving a subassembly the extra movement say in a transitional constraint is able to move so I can see if the total movement allowed is to much?
Changes all dimensions, balloons, ect (define more if you want) to current object default in active standard.
Sub ChangeDimStyle()'J.Kriek 2012 Dim oApp As Application Dim oIdw As DrawingDocument Dim oDim As DrawingDimension Dim oBalloon As Balloon Dim oDimStyle As DrawingStandardStyle Dim oSheet As Sheet Set oApp = ThisApplication
Trying to create a bit of code that when the 'OnNew Document' event is fired the code checks for a particular Custom Property. Depending on what the Custom Property is set to a form is then fired with relevant text to point the user to a specific area in the workspace. Al this works ok.
But if they press cancel i need the code close the activate 'Part1' which inturn then allows the user to select 'New' to begin again.
I have tried various scenarios but the main problem is that Inventor then crashes!
PublicSub applicationEvents_OnNewDocument(DocumentObject As Inventor._Document, BeforeOrAfter As Inventor.EventTimingEnum, Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum) Handles applicationEvents.OnNewDocument
This close the document but brings up the following Error msg...
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Any better piece of code that shuts down the active document but doesn't return the error? (I only want to shut down one document, not the application)
I'm trying to get the value of the Category iproperty of the model on the active drawing sheet. This is not a problem in a single sheet drawing, but I'm not sure how to specifically retrieve the Referenced Document of the Active Sheet in s multi sheet drawing.
Here's what I have:
Option Explicit
Public Sub PartsListFilter()
'set reference to the drawing document 'assumes that a drawing is active Dim oDraw As DrawingDocument Set oDraw = ThisApplication.ActiveDocument [code]........
I have two tables on a drawing one showing a parts list the other changes to dimensions.
The table to show the dimension changes is a configuration table pointing to an ipart.
iLogic is used to update the ipart but you have to right click to update the Active Member in the ipart to see the drawing update.
Is there a way to automate the 'update active member'? (on the ipart table - this does update the drawing)
I just have the one row in the table, it's purpose was to pass the values onto the drawing (as the part resizes I didn't want the dimensions moving so opted to tabulate them) - hoping they would update!
or
Is there a way to have a table update parametrically i.e. I've tried .csv as a source to the table but can't force an update. This way I could scrap the ipart & just import the values to a table.
The table also includes some txt comments which change with the ipart properties.
On a daily basis I work with two different types of drawings; machining and fabrication. The machine shop prefers dimensions in decimal inches, and the fab shop only understands fractional inches. Is there any way to set up the styles/standards/templates to allow me to pick out which type of drawing I am creating and have Inventor use the correct object defaults for the dimensions?
I am trying to have one drawing with B size and E size sheets I am trying to get the border, title block and standard to change when the sheet format changes. I can get it to work when I run the rule but have hard time find information to just change when sheet format changes. And I can't find anything or I should say a sample of how to. I think I found the code just don't know how to make it work. Here is what I have so far.
I'm looking for an API function that would allow me to change the active (or default?) row in the table of an iPartFactory model. I was hoping that such a function would be member or property of the iPartFactory object, but I’m not finding that to be the case.
I create a drawing of an iPart, while doing so I have the iPart model open in the background. When placing a view on the drawing the active factory member is the default option, I have a bad memory so forget to tell Inventor that actually I would like to use a specific iPart member in this particular drawing view. I then spend a long time laying out and dimensioning the drawing. When complete, I create a second sheet and copy all information from sheet 1 onto sheet 2. I then double click on the main drawing view and change the model state to an alternative factory member. At this point I realise that the drawing on sheet one is based on the active factory member and start swearing.
The result of changing to a different member when the existing drawing is based on the active member is that ALL DIMENSIONS DISSAPEAR FROM THE DRAWING AND HAVE TO BE PAINSTAKINGLY REPLACED. At this point I will usually REDRAW SHEET 1 so that further sheets can be created quickly in the future by selecting an alternative factory member.
can I change the software defaults somewhere in the setup to prevent the 'active factory member' being displayed as an option in the first place?
First, it requires there to be a prompted entry text box in the title block named <SCALE>, is there any way to write to a textbox that is not prompted entry? The prompt when a new drawing or sheet is created is misleading and makes users think they need to manually fill out the prompt. Secondly, this code works on multi-sheet drawings but it concludes by making the last sheet active. Since we are triggering this rule before save it's a nuisance to have the drawing switch sheets everytime you do a save. Ideally, the current active sheet should remain active when the rule runs. Here is the
For Each oSheet In ThisApplication.ActiveDocument.Sheets ActiveSheet=ThisDrawing.Sheet(oSheet.Name) If oSheet.TitleBlock Is Nothing Or oSheet.DrawingViews.count=0 Then Exit Sub oTitleBlock=oSheet.TitleBlock oTextBoxes=oTitleBlock.Definition.Sketch.TextBoxes [code]....