AutoCAD Inventor :: Opening Drawing File Invisible Causes Code To Crash
Jun 10, 2013
I am building a custom batch update for our drawings to take border definitions as well as custom iproperties from a current template and push them into a specified inventor dwg file. I built a form for the users to select the template they want to import into a list of files they place in the form. The program opens the template, get's all the information (iproperties, border defs, etc... using the active document to get the document) then iterates through the list of the users doing the following for each file (also getting the active document to get the items in each file): open, replace border definition, insert any non-existent custom iproperties, save and close the file. It works great when I keep the open visible set to true for the files. When I switch the visible property to false for each one of the files I want to open I get an error similar to this: Systems.InvalidCastException: Unable to cast object of type 'Inventor._DocumentClass' to type 'Inventor._DrawingDocument'. at ---- then my button click event here.
Does inventor technically not see a document as an active document if the file is not visible when opened?
View 2 Replies
ADVERTISEMENT
Jun 6, 2012
After upgrading/switching my stand alone license from Civil 3D 2011 to Map 3D 2013, my computer is crashing before a complete opening of some larger dwgs (1575 KB). Sometimes I get an Out of Memory message.Other (much smaller) drawings open fine.The switch from Civil to Map was made because we were not using any of the civil bells and whistles that make it unique.
Map suits our needs. We use shp files (data connect) to generate most of our work.I can use another computer in our office that has Map 3D 2011 and am able to open up any of the drawings with no problems. Because I had no issues with Map 3D 2011, I thought moving up to 2013 would be "easy".
We have a subscription and every couple of years try to load up the latest and learn to live with it.Now I am wondering if we can all just go to Map 2011 and forget 2013.
View 6 Replies
View Related
Feb 15, 2013
At my company we use part numbers as file names for everything. for example, part number 09090P00100000, will be saved as 09090P00100000.ipt and will have a drawing saved as 09090P00100000.idw.
Within the drawing template file, i want to set up an ilogic rule that will check that the part present in the drawing corresponds to the file name of the drawing. This rule will run after saving and will just display a warning if the file names do not correspond.
I just need some code that will get the file name of the part displayed in the drawing. Note that we use iparts so the code must get the member file name and not the factory file name.
Dim oDrawingDoc As DrawingDocument
oDrawingDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
oSheet = oDrawingDoc.ActiveSheet
[Code] ........
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
View 8 Replies
View Related
Apr 27, 2012
i usually get stock at this screen , usually what happen is i click "Continue" and it load the video screen and i start working but now nothing ... just nothing when i had this before i try to restart sometimes work sometimes it's just load me the Autocad 2012 "Non-Civil3D" .
View 7 Replies
View Related
Aug 5, 2013
When I open Inventor, the message "cannot load..." pop-out. Although I still can create the 3D model in Inventor but everytime when I open my existing or new drawing file (.idw), Inventor will occur fatal error and closed.
View 2 Replies
View Related
Apr 20, 2012
some code that will open my company`s webpage if the parameter is set yo <True>?
i have tried alot of that is not working:
If Visit_firenor = True Then
ThisDoc.Launch("C:Program FilesInternet Exploreriexplore","http:\www.firenor.no")
End If
View 2 Replies
View Related
Feb 7, 2012
Why does Photoshop cs4 crash when opening a file? (Mac OS 10.6.8) I've rebuilt pref.'s and reinstalled Photoshop with no positive results. I can create a new file but cannot "place" anything because that crashes as well.
View 26 Replies
View Related
Jun 25, 2009
Photoshop crashes when opening a file.
View 3 Replies
View Related
Sep 26, 2013
I run Illustrator CS6 on windows 7. Every time I try to start a new file or try to open a existing file the program crashes.
View 4 Replies
View Related
Mar 22, 2007
I created a IPN from an IAM for an exploded view. When I put the base view of that exploded assembly into a drawing, one of the main components is invisible. So when I mouse over the edge of the view, the bounding box does not even reach high enough to possibly include this component. All other components are visible in their correct exploded positions. I tried deleting the view and placing it again, but it does the same thing. The colored and shaded preview just before view placement shows all parts where they should be.
View 4 Replies
View Related
Mar 9, 2012
in a drawing I made some lines invisible (right-click on the line, and uncheck visibility). how can I make these lines visible again? for obvious reasons I can not right-click on them (they are not visible), and I don't find them in the browser tree.
View 2 Replies
View Related
May 23, 2013
I am working on a project to assign balloons to components in drawing view automatically. Of course, I don't want to assign a balloon to a component which is invisible (hidden) in this drawing view.
So, is there any API function to check whether the component in the drawing view is invisible or hidden?
View 2 Replies
View Related
Aug 10, 2012
I need some VBA code that will allow me to get the Filename from the border of a drawing. I've got code to get to the text of the filename, but I need to get the filename itself. Hope that males sense. Here's the
Public Sub GetModelFilename()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
[Code]...
What the code returns is the text <FILENAME>. What I need is the filename itself.
View 8 Replies
View Related
Feb 27, 2012
We have about 1000 drawings with VBA code that copies information from the title block into the drawing file custom properties. We have done this to get the information into a ACAD block to meet our clients requirements. It is an autosave routine so it runs whenever the file is saved in Inventor. We would like to make a change to the VBA code so we need to replace the autosave routine in the file with another.
Manual steps are:
Open the file
Enter VBA editor
Delete the autosave routine (without exporting)
Import the new autosave routine
Exit the VBA editor
Save and close the file
I'm sure we would write a routine to do this. However the effort from scratch may be more that just manually processing the files.
Currently running IV 2010.
View 2 Replies
View Related
Jun 2, 2013
I have found some code which extracts the part number from the iproperties of a model and adds it to the custom iproperties of a drawing but this will only work on iam or ipt files.
Here's the code, I added the lines referring to the docment type as an attempt to fix the error but it didn't work...
If (ThisDrawing.ModelDocument Is Nothing) Then ReturnIf ThisDrawing.ModelDocument.DocumentType = kPresentationDocumentObject Then modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)End IfIf
[Code]....
View 2 Replies
View Related
May 15, 2013
I'm having an issue with Inventor crashing every time I attempt to follow this exact procedure:
1. I have a drawing open with an iAssembly or iPart in it.
2. I edit a view by double-clicking the view, opening the 'Drawing View' dialog box.
3. I open the 'Model State' tab.
4. In the 'iAssembly/iPart Member' menu box, I select a different member.
Now, it may or may not open the 'Save' dialog box. If it does, then I click 'OK' and poof, Inventor crashes without fail, asking to send in a crash report.
The same thing happens if I start a brand new drawing and attempt to follow the same procedure while inserting a Base view.
Now, I know for a fact that the not all of the drivers are not up to date on my computer, I am not using a recommended graphics card, and I am using SP1.1, not SP2. I have notified my IT guy about this, but he has yet to get back to me. I don't now if/when everything on my computer will be updated. I do not have admin rights to my computer.
In the mean time, Inventor has become essentially useless for me until this issue has been resolved. how I can get these drawings to start working?
View 3 Replies
View Related
Aug 27, 2011
How to change the color of layer that will be used within a drawing files for special purposes.
Ideally the code will make the color Red, but change to Black prior to printing.
The "logic" behind the code currently is to differentiate a layer called "Burn" to a highly visible color for the purpose of review by others then, prior to printing, change the color to Black. The firm I'm currently working for uses gray-scale B sided printers only. The firm currently uses Blue for dimension and extension lines so to produce drawings that portray both type of objects "lightly".
View 2 Replies
View Related
Jul 3, 2012
I would like to do something when my paletteset is closed. I took the C# code from here
[URL]
I modified the code to VB.net
Dim WithEvents ps As Autodesk.AutoCAD.Windows.PaletteSet <Autodesk.AutoCAD.Runtime.CommandMethod("psTest")> _ Public Sub PSTest() If ps Is Nothing Then ps = New Autodesk.AutoCAD.Windows.PaletteSet("psTest")
[Code]...
My code crashed. If I catch exception it is eInvalidInput exception. I don't know what to do as it is a simple code segment I don't know hot to fix it.
View 9 Replies
View Related
Sep 27, 2013
I am having problems in opening a drawing exchange file sent to me by a friend who is using TurboCad V1.1 In trying to open the file using AutoCad 2000 I am getting the following error message "Invalid or incompatible DXF input - Drawing discarded".
I thought that the whole point of a dxf file was that it could be universally recognized from one system to another.
View 5 Replies
View Related
Aug 28, 2011
I included a VB code in our drawing template, but then I get the "Warning: You have a non-empty VBA project.." message. If I copy the code into iLogic, I just get an error message. Why it runs fine as a separate macro, but doesn´t work in Inventor, or how I can include the code into the template? URL....
View 2 Replies
View Related
Feb 13, 2013
Autocad LT 2008 keep crashing and not responding everytime i try to open any drawing file.i don't know what is the problem since i only using Window XP with 2.67GHz, 3.36 GB of RAM.
View 4 Replies
View Related
Aug 21, 2013
Looking for the ilogic code to place in the drawing rule to close *.ipt file that was recently open.
View 2 Replies
View Related
Jul 25, 2012
When I open a .dwg file from a saved location auto cad crashes about 35% of the way through loading. I did not have this problem when I was running Windowws XP but now I am running Windows 7.
View 6 Replies
View Related
Jul 27, 2012
I have this file that won't open in AutoCAD Architecture 2012, well let me rephrase that, it won't finish opening. It has 4 or 5 xref's attached. I was able to open this same file using 2010. Through process of elimination I was able to determine that a file that was exported from Revit MEP 2012 was the problem. When that file was detached the drawing would open just fine. To make things more interesting, I am able to open the Revit Export file just fine using 2012. What diabolical combination of event has happened to cause this SNAFU.
View 2 Replies
View Related
May 26, 2011
Is there a way to plot multiple drawings in Acad 2009 without opening each drawing file?
View 1 Replies
View Related
Aug 10, 2010
When I try to Check files into Vault from Inventor 2011 and I have, under settings, Create visualization attachment checked, Inventor locks up. Only (1) of (4) machines with this problem. Same machine is using Vista, everyone else is using XP.
Seems to hang up the most when i try to check the .idw. Locks up 50% of the time. Tends to upload parts and assemblies o.k. then hangs up on the .idw.
Windows Vista business 32 bit, SP2
Intel Xeon 5150 @ 2.66 ghz
4 GB Ram
Inventor Suite 2011, SP1 Beta
View 9 Replies
View Related
Aug 8, 2012
Is there a way, using VBA to get the sheet size of a drawing without opening the drawing? I know how to get it with the drawing open, so alternatively, is there a way to open all the drawings in a folder, one at a time, then get sheet.size, then close and open the next?
View 3 Replies
View Related
May 15, 2013
I have created a new drawing template using an iLogic Form and Prompted Entry. What I would like is a Rule that is generated when a user opens a new drawing template. The rule that is created would open up the new iLogic Form I created where various Title Block information is entered (Client Name, Client Address, Date, Drawn By, etc... I know you can manually open the iLogic Form that I created via the iLogic tab, but I would prefer the form open upon opening the new drawing. Once comlpeted, the user than imputs the Prompted Entry values (Drawing Name, Drawing Number, etc...).
View 4 Replies
View Related
Aug 24, 2012
I have downloaded AutoCAD 2012 and when I try to open it my computer automatically shuts off without even openig AutoCAD. I tried downloading the newest version of AutoCAD 2013 and it does the same thing. Inventor fusion seems to open and work properly but not AutoCAD.
View 1 Replies
View Related
Feb 21, 2008
I'm using AutoCAD Civil 3D 2007.
A drawing contained several layers, some of them locked, others de-activated during ongoing works. I wanted to edit a block used in the drawings. I selected the block and opened the block editor. After deleting some elements of the block, I had to explode a couple of elements from the block to delete further details. I selected all the remaining ones. Than I hit the toolbar button MAKE BLOCK, next I closed the block editor.
Now all of the model space appears empty except of the ONE block I edited, everything else disappeared. How can I undo the changes and bring the proper drawing back?
I tried the procedure on an earlier version - minor changes don't cause any harm to the file. But once I exploded parts of the block during editing, the error appears. When I lock up the block list, the edited one shows a sign saying "Dynamic Block" which may be the root of all evil (as the unknown is always the evil).
How to recover my drawing? Getting the backup from tape takes ages, deadline is close.
View 4 Replies
View Related
Jul 21, 2013
I changed from 2012 to 2013 Inventor,
When I open an existing drawing, I have this error msg.
View 4 Replies
View Related