AutoCAD Inventor :: VBA - ActiveDocument.Close Causing Crash
Apr 22, 2009
I'm creating a macro to run on creation of a new assembly from a particular template. I created a macro named autonew in the template's VBA project file. It works great except for one thing: if the user presses "Cancel" on my form, I want to not only unload the form but also close the file. For this case I've used:
ThisApplication.ActiveDocument.Close True
I've created a test template assembly with only this line in autonew, and it crashes Inventor. The same line of code an a non-autonew module within the template file's VBA project closes the document without error or crashing. I assume this is a bug and not as designed.
Is this a bad way to accomplish the task of closing a newly created assembly? Even if this isn't the preferred approach, I don't think this should cause a crash.
I'm running Inventor 2009 SP1.
I'm running 64 bit on XP64
View 5 Replies
ADVERTISEMENT
Sep 16, 2011
It seems I can only get the File object, can I cast it somehow?
Inventor Professional 2012 SP1 (25 seats with subscription)
Windows 7 64 bit
Lenovo D20, 12 GB RAM, Intel Xeon X5687 3.6 GHz, SSD
Quadro 4000, driver 8.17.12.9573, dual monitors
SpacePilot, driver version 6.15.3 Firmware 3.12
View 3 Replies
View Related
Aug 28, 2013
I want to know if it is possible to creat a script that will rotate the cam wheel show at the pivot point, while causing the rectangle to oscillate up and down in cadence with the ppoint of the whell that is contacting it.
I have a simple script that rotates the cam wheel, but every time I run it, AC crashes. I am on Windows 7 Ultimate 64bit and I have installed the latest service pack. Here is the script:
rotate
g
1
45.5447,44.7299
1
rscript
I'm not sure what other information you may need to diagnose this, so just let me know. There is no error message given, it just freezes up.
View 3 Replies
View Related
Jan 4, 2013
We have a work station with C3D 2013 that has started crashing when trying to open the pipe network vista. We have to edit the pipes using pipe properties for the individual pipes. This makes it difficult when trying to edit a large network. The drawings work fine on other computers. It has something to do with the settings on this machine. What would be causing the crash when trying to open the vista window?
View 5 Replies
View Related
Feb 7, 2013
when i try to use marquee tool by clicking on it Photoshop cs6 closes or I see an error message and then it closes? text tool causes the same problem? im using xp sp3.
View 3 Replies
View Related
Apr 26, 2013
I am doing simple extrusions in 3D. One or 2 extrusions in a document. Specifically, earrings. I have to save every few steps , because PS is going to crash at least once per hour.
My computer has 12GB RAM, and a 1GB GPU. My MAC is less than a year old. It should be able to handle the workload.
When I'm doing 3D I shut down all other programs on my computer.
I have turned up all the preferences inside PS pertaining to performance.
When I save a document the SAVE time is 3-7 seconds. Each time I hold my breath that it doesn't fail.
View 5 Replies
View Related
May 3, 2013
I've just got an iPhone 4S and shot a test video to edit. However, when I load it and try to create a file, VS10+ crashes every time within a few seconds.
All I'm doing is trying add a few simple titles with the output file being 'same as project settings' so the output should be mpg4, PAL, 720 x 576. This is the first time I've tried editing iPhone video and I've never had this problem with any stuff that I've edited in the past.
View 4 Replies
View Related
May 5, 2013
I am running XP and X5 Ultimate.My workflow follows :
File
Insert media file to library
Insert Digital media
Select drive in import from digital media box
Start
Then the screen goes black and the PC reboots with an error report box showing. The DVD has a UDF file system and it is 2.32GB and plays in Power DVD OK.
View 2 Replies
View Related
Sep 11, 2013
I am using X5 on a Win 7 64 bit system. I am having an issue with colors that manifests itself in 3 ways: When I try to change a color from rgb or cmyk to PMS, the program freezes and gives the error message that CorelDraw has stopped working. Files that have been created using more than one palette will not open on this system - although they will open fine on other machines running X5. Finally, if I even mouse-over the color palettes tab from the "Windows" drop-down menu the same thing happens.
I have used F8 to reset the workspace and when that did not work, I re-installed Coreldraw with the same result.
View 2 Replies
View Related
Jun 26, 2012
So A client hires a designer to create a vehicle wrap. He does it in Photoshop. If you have not done vehicle wraps before you DO NOT DESIGN IN PHOTOSHOP!!! Anyway, he sends me a link to download a psb file. Another bad sign. Means the file is huge! 1 hr to download. I open it in photoshop (at least he left it unflattened) and reduce it down enough to make a psd with layers intact. I then import it into Corel and begin placement into the vector vehicle template. Once I get all the images fiting nicely I hit save. Come back to it the next day and it won't open. Message says a bitmap is not right "Abort, Retry or Ignore" I try the backup file, same error. I try to move a copy to my hard drive instead of working over the network. No go! Try rebooting, no go! Rebuilt the file agian and saved that version to my desktop. Saved successfully, made a couple changes and then CorelDraw crashes and shuts down. Try to reopen the file and same errors occur.
View 4 Replies
View Related
Aug 11, 2012
I just set up a new rig (specs below) and everything was going great. I added a second monitor and suddenly PS CS6 starts crashing randomly. I think I discovered that PS will not support a dual monitor config if each monitor is on a different video card.
My main monitor (30" dell) is powered by an ATI Raedeon HD 4850. My secondary monitor (HP Elite L2201x) is powered by the on board Intel HD Graphics 4000 because the display only uses Display Port. Both are supported cards and PS runs fine with either one used independently with or without GPU support.
When I have BOTH connected the Graphics Processor Settings box is greyed out and when I mouse over that section the description box below says "Graphics hardware acceleration is unavailable. You will need to upgrade your video driver and possibly your video card" and the programs crashes randomly. The same behavior occurs regardless of on which monitor PS is being displayed.
I have attempted to tweak BIOS settings to establish a hardware priority so PS would only see one card but to no avail. As this issue prevents me from using my second monitor entirely (I use PS daily), I'd really like to get it resolved.
Motherboard: GIGABYTE GA-Z77X-UD3H
Processor: Intel Core i7-3770K CPU
RAM: 32GB
Boot Drive: OCZ 128GB SSD
OS: Win7 64
Video card details: Current drivers on both
Primary: ATI Radeon HD 4850
Secondary: Intel HD Graphics 4000 (HD4000)
View 6 Replies
View Related
Aug 4, 2013
I didn't have any problems with transition effect, but suddenly,some effects, like flip album and the ProDad plugin are causing VS to hang and not respond: flip album is causing the hang just after the automatic preview (can't turn this off) and just clicking on the ProDad plugin is freezing VS. They are also causing the rendering process to hang (turned off smart rendering as well).I've reinstalled the software wituhout SP2 and still the problem persists.No matter what kind of media I insert before or after the transitions, the problem is the same.I assume there is some kind of incompatibilty between VS and some OS/driver update - any way to know for sure?
View 14 Replies
View Related
Aug 22, 2013
i use autocad lite 2012 and it works fine except for when i edit a block (either block editor or block in place) when i open the block i can edit it fine but then when i go to close the block and save changes my computer will usually lag and most likely autocad will crash. i then lose all the work that i did in the block. i don't know how to fix this problem but it takes time out of the day. and always have to redo the work.
sometimes editing the block will only lag when it closes for after 10 seconds and other times it never goes back to the model and cad crashes
a side note is that i tried REFEDIT and the same problem still happens.
View 9 Replies
View Related
Oct 18, 2011
what could be causing all of my add-ins to spontaneously unload themselves? For the second time in a week, I opened Inventor to have all of my add ins unloaded, and the "Load at Startup" and "Loaded/Unloaded" checkboxes are unchecked. I am not doing this and I am the only user on this machine. System stats and version below.
[URL]
View 4 Replies
View Related
Jul 9, 2012
The issue I have with Inventor 2010 is when i dimension a rectangle to be 44 in wide and 79 in height it becomes a slated rectangle. This event occurs on the work version of Inventor 2010. I have an educational version of Inventor 2010 at home and when I tried this same dimension rectangle at home it didn't have this issue. Is there a setting I need to turn off to fix this.
View 1 Replies
View Related
Jun 1, 2012
Having problem with a particular file crash/freeze/not respond whenever using the shell feature on Inventor LT 2013? I am operating with Windows 7. I have the AutoCAD Inventor LT 2013 Suite. Just bought the computer two weeks ago and just installed Inventor about two weeks ago also.
In any case, it seems the file of this model is corrupted, as I have never had a problem using the Shell feature before this and shelling other objects even while the corrupted part is open works fine. However, if the "visibilty" of the part in question is checked and i click on the shell button, the program immediately freezes. I am not sure how to work around this and I really do not want to start the entire part modeling over from scratch.
Working with... Autodesk: AutoCAD Inventor LT Suite 2013 | OS: Windows 7 | GC: ATI 6670 | Mem: 8 gigs RAM | Proc: Intel core i5 | Monitor: Acer V213HL
View 9 Replies
View Related
Nov 1, 2011
I am trying to build a robotic head using the surface modeling and thereafter thicken the surface to form solid. I was not able to load the original model as the file size is exceeded. I use a derive model and the problem is similar.
View 9 Replies
View Related
Jul 12, 2012
I'm looking for a script that makes automatically PDF AND DXF when i close a IDW drawing.
So on close export to PDF and DXF
View 2 Replies
View Related
Jul 20, 2013
I call an instance of an inventor using inventor api ,vb.net code. here is my code
inventorApp = CreateObject("Inventor.Application", "")
inventorApp.Visible = True
My doubt is and how can I close this inventor instance.I tried
inventorApp.Visible = False
View 1 Replies
View Related
Mar 21, 2013
I've run into this problem with different sketch types when curves cross each other and are trimmed, or when patterned sketches are coincident. The problem I'm having is that I'm creating a ratchet wheel and I'm patterning a sketch in two parts so that the spacing for the teeth line up. What I do first is draw the angled line of the tooth, do a circular pattern of 20 teeth around the origin, an then create an arc from the bottom point of each line to the tip of the next line to create the back of the tooth. When I try to extrude it, it says the loop is not closed, but when I do the repair, it says it overconstrains the sketch and is not possible. I've tried creating this profile using a center circle that intersects the bottom of the teeth and it does not work either. I was able to make the profile I needed by making one tooth, extruding it, patterning the feature, and then creating a circular sketch in the middle and extruding it. The problem with this (aside from requiring additional steps not needed in other programs) is that when I needed to go back and change tooth dimensions, it can't rebuild the sketch.
I attached two different sketches of the non-closed profile as well as the solid ratchet piece that I made using the pattern feature command that has the teeth that can't be easily edited.
View 4 Replies
View Related
Mar 15, 2012
I am using Inventor 2012 and C#. I would like that, when I close my Form, Inventor and all files that are open will be closed with displaying the message about saving the files .Some of my opened file are stored in Lists.
This code das not work Inventor still asking me about saving the files.
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
{
if (InventorOpen._started)
{
oDrawDoc.Close(false);
foreach (Inventor.AssemblyDocument openAssemDocument in openAssemDocumentsList)
{
openAssemDocument.Activate();
[code]....
View 8 Replies
View Related
Oct 23, 2012
Have sketched the geometry for an 18 tooth circular sawblade. However I have had difficulty applying the close loop function. As a result am not yet able to extrude the saw blade. What to do to implement close loop?
View 4 Replies
View Related
Nov 3, 2012
I have an iLogic that runs to create parts and assemblies. These parts and sub-assemblies are for a range of library components which are either part(s) or assemblies or and assemblies composed of parts) and sub-assemblies as well. This iLogic is mostly done despite I have limited knowledge in this area. At the beginning it opens a text file (.txt) by the command line:
ThisDoc.Launch("L:\_Nov 02Info and Input GuideLines.txt")that offers guidelines and instructions.
I would like to how can I close (exit) this text file at a point within or end of the current iLogic because, it opens a several files of the same every time I run the iLogic otherwise.
View 3 Replies
View Related
Mar 8, 2012
I have dimensioned hundreds of drawings with the Ordinate Dimension command in Inventor 5.1. I'm now using Inventor 2011 and I'm having lots of issues using this command. When I first set up the dimensions, I can't get the dimensions to default close to the view. They almost always want to be on the very edge of the title block. I don't think this is a sttings problem, because occasionally they will lock to where I want them. What am I doing wrong?
The first attachment is how they go on their own. In the second attachment, I have manually moved them, but at 1 dimension per move, it's slow, and also hard to keep the all aligned.
Autodesk Inventor 2011
AutoCAD Mechanical 2011
View 2 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
Mar 26, 2013
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?
View 9 Replies
View Related
Aug 16, 2013
how can I close an iLogic Form from either an iLogic Rule, or a VBA Rule?
the full code text required to close a form called "Mr Form"
View 4 Replies
View Related
Jun 11, 2013
Is there anyway to automatically close a message box which has been activated by the line
MessageBox.Show("Message", "Title") after a set period of time? I just want the box to be displayed for a few seconds without the user having to click "ok" or "done" etc.
View 6 Replies
View Related
Mar 15, 2013
why I am not able to extrude the close sketch through the part.
View 1 Replies
View Related
Dec 17, 2013
Is there a way to revert an open, edited part back to its most current save? Or to close an edited part without its changes persisting in assemblies that reference it?
I often work on parts with their associated assemblies open; Inventor won't let me discard changes until all related assemblies are closed. Searching brought me to a thread describing the same issue from 2006. I'm using Inventor 2010.
View 9 Replies
View Related
May 23, 2013
I'm wondering if there is a way to either close or hide an open form with iLogic? Something like the opposite of iLogicForm.Show.
View 2 Replies
View Related