AutoCAD Inventor :: Force Saveas From External App?

Aug 29, 2012

I want to force a saveas from an external app using code as below:-

If OApp.Ready Then
Try                   
Call oDoc.SaveAs(File_Full_Name, True)
......

However, Inventor invariably crashes at this point - especially if panning a model. Is there a way I can either lock Inventor from the user whilst the save is happening or check that no mouse or keyboard activity is in use?

I have tried monitoring the status bar text for "Ready" but tihs is unreliable.

View 1 Replies


ADVERTISEMENT

AutoCAD Inventor :: Saveas Case Sensitive?

Oct 15, 2013

Does Saveas really need to be case sensitive. I just spent a lot of time trying to figure out why my addin wasn't working and all that was wrong is I had a capital P on png.

Dim sPath As String = System.IO.Path.GetDirectoryName(sIDWName) & "PartsLists"
Dim sFileName As String = System.IO.Path.GetFileNameWithoutExtension(sIDWName) & ".Png"
vs
Dim sFileName As String = System.IO.Path.GetFileNameWithoutExtension(sIDWName) & ".png"
Dim sPNGName As String = sPath & "" & sFileName
MsgBox(sPNGName)
oCamera.SaveAsBitmap(sPNGName, 1124, 899)

View 1 Replies View Related

AutoCAD Inventor :: Applying Force In Simulation

Nov 16, 2011

Is it possible to set a time delay on an applied force in simulation 2012? I would like to apply a force for a set amount of time?

View 5 Replies View Related

AutoCAD Inventor :: Force All Users In Domain To Load Same Add-ins?

Feb 27, 2013

How can I force all users in a domain to load the same add-ins with Inventor Professional 2012?

View 3 Replies View Related

AutoCAD Inventor :: Force Command In Loads Panel

Oct 10, 2013

When I click the Force command in the LOADS panel when doing a Frame Analysis, I don't get a dialog box. All I get is a select origin box with an arrow. There is no way to change the Magnitude value or the Angle of Plane as per instructions in the tutorial. I have tried numerous ways to get a dialog box to appear, but I can't find out how. why I am not getting a Dialog box?

View 1 Replies View Related

AutoCAD Inventor :: Adding Force In Frame Analysis?

May 2, 2013

I have a question regarding adding a force constraint in the Inventor frame analysis environment. When I add the fixed constraint to the beam the orientation indicator is incorrect - the square indicator being not parallel to the base of the beam. I would like to know why this is and as I am relatively new to frame analysis if I am doing something wrong. I have attached a screen shot of the placement of the constraint on the beam.

Autodesk Inventor Professional 2013 SP2 64-Bit Edition
Windows 7 HP Z400, Intel Xeon W3550 3.07GHz
12.0GB RAM, ATI FirePro V4800 (FireGL)

View 2 Replies View Related

AutoCAD Inventor :: Dynamic Simulation - Use Spring Joint Or Force?

Jan 28, 2013

I'm designing a hinged cover for something right now that will use a pair of gas extension springs  for assisted opening.    I'm currently working to figure out how much force it will take to open the cover using different values of spring - it's available in 50, 100, 150, 200, etc., lb versions. 

I've tried running simulations using a force applied to the moving end of the gas spring, and I've trued running simulations using a spring joint applied between the fixed and and the moving end of the gas spring, and I'm getting dramatically different results between the two.  For instance, using a 200 lb force shows me that I need about 25 extra lbs of force applied to the handle of the cover to open it, where when I use that same 200 lbs on a spring joint, I need 50-75 lbs to keep the cover closed, because it will open on its own.

View 9 Replies View Related

AutoCAD Inventor :: Force Users To Particular Folder When They Save 3D Parts?

Mar 20, 2013

Within my InventorAddin in vb.net we are trying to force users to a particular folder when they save 3D Parts, Drawings etc.

This 'SaveAs' form does indeed fire, but after the 'Inventor' own 'SaveAs' form window. Can we suppress 'Inventors' window or even change that so it points to our preferred location.?

If we do not do this we are goinf to have 3D Drawings in the Parts folder etc etc.

PrivateSub applicationEvents_OnSaveDocument(DocumentObject As Inventor._Document, BeforeOrAfter As Inventor.EventTimingEnum, Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum) Handles applicationEvents.OnSaveDocument
If iApplication.ActiveEditDocument.FileSaveCounter = 0 Then

[Code].....

View 1 Replies View Related

AutoCAD Inventor :: Stress Analysis - Angular Displacement Instead Of Force

Dec 17, 2012

We are projecting a support for one mirror of our Infrared beam line. The support is a block with a rotational weak link and that needs to be rotated about +/- 1°. I would like to know a way to insert this angular displacement and get the stress in the weak link area. I don't have the moment loads and components.

View 1 Replies View Related

AutoCAD Inventor :: Force Save Of Drawing's Parts And Assembly To New Folder?

Feb 8, 2013

How may I best reuse a legacy assemlby and it's drawing to create/update to an vairant assembly?

View 3 Replies View Related

AutoCAD Inventor :: Running Force Analysis On A Complex Shape In 2013

Apr 17, 2013

Is it possible to run force analysis on my part in Inventor? I have used the force analysis before, but never for something so complex in shape. My  main issues are constraining the base of the part and applying forces. I tried thickening sections of the part in order to apply a force/constraint, but now Inventor won't recognize the thickened parts as connected to the main body.

On a side note, it won't let me attach my file, which is 122 MB. Is it too large?

View 7 Replies View Related

AutoCAD 2013 :: SaveAs And Block Creation

Jul 21, 2012

I have a student that downloaded and installed the 2013 student version of AutoCAD.  She then opened a drawing we were working on in class (2012 standard version) and continued to work at home.  She is able to save that drawing by clicking the save button on the Quick Access toolbar, however she is unable to "Saveas" that drawing to a different name or different release.  The dialog box resets the file name to a file path on her C drive as soon as you move the mouse.

The same thing happens when she goes to make a block - she can type a block name in the window, but as soon as the mouse moves, the name changes to a block name already in the list.

View 2 Replies View Related

AutoCAD .NET :: SaveAs With Paperspace Layout Current

Jan 18, 2012

I have a bit of code that batch processes from a template drawing. It all works fine until I get to the SaveAs() function. I have narrowed down the problem to have something to do with the drawing starting and saving in a paperspace layout. When I run the code with the template saved in model space it works fine but whe the current tab is a paperspace layout I get an error during the saveas() function "eInvalidInput"

I am using VS2008 and Autocad 2011. Is there a difference in saving with a paperspace layout current?

View 9 Replies View Related

AutoCAD .NET :: Retrieve SaveAs Version In Database.BeginSave

Mar 30, 2012

Is there a way to retrieve the fileversion in the Database.BeginSave event when the user has choosen like version 2004 in the default SAVEAS command?

I only found the OriginalFileVersion and LastSaveAsVersion property, however I have to add something in the database for version 2004 before it is saved. Or is there another approach?

View 2 Replies View Related

AutoCad :: SAVEAS Looses File Name When Saving Through Shortcut Key

Feb 27, 2013

I have a folder on a my desktop with shortcuts to my active projects in my company's network. When I run SAVEAS in AutoCAD, I browse for the respective file using the shortcuts folder. However, the file name is now changing to the name of the shortcut folder. For example, a file is named PreliminaryPlat.dwg. I want to SAVEAS PreliminaryPlat.dwg in P:/111-05-02/Plats. Rather than go through hundreds of folders in the P:/ drive, I click on a shortcut in a FOLDER on my desktop for P:/111-05-02/Plats. When I run the SAVEAS in AutoCAD, the window is prompting me to save the drawing as P:/111-05-02/Plats. I found this error happens when I SAVEAS using a folder shortcut.

View 4 Replies View Related

AutoCAD .NET :: SaveAs API - Don't Receive Call Back For SaveComplete Event

Dec 3, 2013

I am facing problem with SaveAs API which is when called to save the top drawing of one or above level structure we don’t receive call back for “SaveComplete” event. When we call SaveAs API, it is expected to receive first call back for BeginSave event and then SaveComplete event. But we don’t receive the call back for SaveComplete event.Below is the scenario:

Create a drawing say, “TopDrawing” and attach another drawing (as xRef) say “ChildDrawing” to the “TopDrawing”.
 
Save the drawings.Now modify the “ChildDrawing”.After this we are using following SaveAs API for the “TopDrawing”.
 
inline Acad::ErrorStatus saveAs(const ACHAR* fileName,
const SecurityParams* pSecParams = 0);

Observations: After using this API we receive call back for “BeginSave” event. But we are not receiving call back for “SaveComplete” event.Due to this we are not able to save the TopDrawing after the modification of its reference. This issue is observed in more than one level structures also.This is observed with AutoCAD2010,11,12 and 13.

Expected Results:

We should receive call back to SaveComplete following to the call back for BeginSave event in order to save the structure correctly. What needs to be done if I want to get result as I am expecting after using SaveAS API.Also provide me the information about the libraries which are used for SaveAs function.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Detect User Hitting ESC Key During SAVEAS Command

Nov 8, 2011

I'm putting together a simple lisp routine to issue bound, purged drawings.

I have code that will do the binding & purging but need handling the saving.

This is my approach :

(1) ask the user to save the drawing using this line (command "_saveas" "" "~")

(2) run a subroutine that binds xrefs etc (this works ok)

(3) run the QSAVE command

Trouble is, if the user cancels or hits escape during the SAVEAS command the subroutine & QSAVE will still run, overwriting the current drawing. How do I handle this scenario? Or should my appoach be different?

View 9 Replies View Related

AutoCAD Inventor :: Way To force File To Find Entire default Color File

Nov 9, 2011

I'm trying to update a part with different colors for various features.  My color styles are not available in this file.  I can export them from another file, then use the import function to bring it over, but there has to be a way to force this file to find the entire "default" color file.

View 6 Replies View Related

AutoCAD Inventor :: Force To Use Browser Of Choice Or Default Browser?

Nov 7, 2011

When I press F1 Inventor opens the help on my default browser (Chrome), but when I click the bynocular it uses Internet Explorer.

Is it possible to force Inventor to use a browser of my choice or the default browser?

View 1 Replies View Related

Illustrator Scripting :: CS5 - How To Disable SaveAs Option

Aug 29, 2013

I need to hide/disable the "save As" and Save option in the "illustrator application CS5" menu via scripting.

View 6 Replies View Related

Illustrator Scripting :: Batching SaveAs In CS6 Will Not Save PDF Compatible

Sep 12, 2012

So I'm using a script that I wrote to bring in files that were converted from CorelDraw to EPS (this is the best conversion process to preserve text and drawing assets).  Basically the script takes the art in the EPS, groups it, places a rectangular border around the art and centers them.  We do this so that they come into InDesign correctly sized.  The problem is, it used to be 100% automated, just about, however now the saveas action command will not remember that "Save as PDF Compatible" needs to be set to true.  When I do a saveas command, it's check by default, but when the saveas command is batched, it does NOT do it that way.  When I try to bring batched AIs into InDesign, it's text that says it was not saved as PDF Compatible.  Am I going to have to script a save function to get control of the saveas settings?  I don't understand why PDF compatible is checked by default, yet batching saveas saves as if it unchecked it. 

View 5 Replies View Related

AutoCAD Inventor :: Extrude External Hex?

Jul 30, 2012

I drew a round part and want to cut a hex on an external feature. I have done before but for some reason that escapes me it always seems difficult....

How can do this more easily?

Inventor 2014 PDS

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Saveas Drawing With Default Drawing Name

Oct 13, 2013

I am trying to put together a lisp routine for exporting a Civil3D drawing to basic autocad entities and convert it to a clients layer standards.

I don't want any user input, so I see two problems with the routine at the moment.

Step 2. SAVEAS - I want the drawing to be saved in the same directory as the current drawing, either called "CLIENT_export.dwg" or preferably "Export_{current drawing name}.dwg". If the dwg exists I want it either to overwrite or increment a suffix number.

Step 4. At the moment it askes the user for a selection, I want it to select "ALL"

;;;Purpose to convert a Civil3D drawing into CLIENT layer standards.

(defun c:client ()
(setq old-echo (getvar "CMDECHO"))
(setvar "cmdecho" 1)

[Code]...

I don't have any experience with LISP or any other programming. I have just been cobbling this together from bits and pieces I have found on the web.

View 3 Replies View Related

AutoCAD Inventor :: Use Function In External Rule

Oct 28, 2013

I have an ilogic external rule which contains functions that I use from rules in my local assembly document. I'm trying to access the value of a parameter in the document from the external rule's function. Attached is a simple version of what I'm trying to do. If I manually run the external rule, it seems to work just fine, but when I call on the function from a seperate rule, its unable to get the parameter value. I get an error stating, "'Parameter' is not declared. It may be inaccessible due to its protection level."

'this is the external rule. if I run this manually, it works

Public Class test_functionsSub Mainmyresult = ""thisisatest(myresult)MsgBox(myresult)End SubFunction thisisatest(ByRef resultcreated As String)resultcreated = "it worked - " & Parameter("ParameterInDocument")End FunctionEnd Class
 
'this is my rule in the assembly document trying to use the external rule's function

AddVbFile "z_testrule.iLogicVb"Dim external_rule As New test_functionsmyresult = ""external_rule.thisisatest(myresult)MsgBox(myresult)

View 3 Replies View Related

AutoCAD Inventor :: Files With External Link

May 17, 2013

is it possible to show all files from a folder with external links in a listbox? Is it possible to check if the link is OK?

View 1 Replies View Related

AutoCAD Inventor :: Run External Rule In Occurrences?

Jan 29, 2013

Is it possible to run an external rule in assembly occurrences?

You have RunRule in Component, But it does not seem to work with external rules

I referenced to occurrences and opened it using ThisApplication.Documents.Open(filepath, False)

Then i tried calling the same external rule. I thought it would run the external rule in the opened file,

but I ended up with a infinite loop on the main assembly.

Is there a way to run your rule in every occurrence with external?

View 2 Replies View Related

AutoCAD Inventor :: External Ipart Library

Mar 22, 2013

When I try to use the file attach in the Inventor 2012 it didn't work, I cannot change the size or the position, but when I open in Inventor 2013 it works normally.

View 1 Replies View Related

AutoCAD Inventor :: Pass Array To External Rule?

Nov 26, 2013

Is there any way to pass an array from an internal rule to an external rule in iLogic?

View 2 Replies View Related

AutoCAD Inventor :: External ILogic Rules And Templates?

Apr 1, 2012

I am trying to build a set of scripts (aka iLogic rules) into templates. So far, quite a common task. One extra requirement is that the scripts need to be updatable after parts have been instanciated from the template. That is, we do not want to update all of the ipt each time a new material option is added to the script. That means that external rules are the only way to go, right? This is the road I tried and it seems to work on my machine.

One extra requirement is that the whole project must be shared between several workstations. We went the Subversion road for that (for all the Vault comments). The scripts are distributed properly and in the same absolute location on the two test machines, all good (I checked the md5 on both side and they all match). The application options on all the machines are all set the same way (export the xml file, check it in the source control, import on all the machines restart). The iLogic search path is also updated, but manually this time, since it is not included in the application options export. It should all work perfectly right? Well, sort of....

I did create a tiny assembly from the templates. On my source machine, all looks good. The ilogic rules are both listed in the ilogic browser and the triggers are set when I instanciate from the template. This is the intended behavior. Now, I close inventor, copy the whole directory to a new machine, open inventor there and open the project. The rules do not appear anymore in the browser, but they are still listed in the trigger list (wtf?). The best part is that if I do not touch anything, stuff still works! The scripts are found and run properly!! Now, if I have to change the triggers or even find the rule in the browser to run it manually, well, bad-stuff-happens (tm).

All the files in question are indentical on both machines, the ilogic files, the ipt files, the application options export, all with the same hash. The ilogic search path is also set the same as are the absolute paths. It should work the same (tm).

Me sending a copy of the files is not likely to work though. Since the problem happens when you copy. I could try to "pack and go", but that would break reason #1 for doing that, which is keeping only one version of the script and adding materials at only one place for all the projects.

View 4 Replies View Related

AutoCAD Inventor :: Launch External ILogic Rule With VBA?

Sep 26, 2011

Is there someway to launch an external iLogic rule with VBA?. I'd like to add a button to run the iLogic rule.

Inventor Pro 2013 (PDS Ultimate)
Vault Pro 2013
Windows 7 64
Xeon 2.4 Ghz 12GB

View 9 Replies View Related

AutoCAD Inventor :: External ILogic Rule Error

Oct 3, 2011

why this will not run as an external rule? It runs fine as an internal one.The error I get is object referance not set to an instance of an object?

 'Updates rule when done
iLogicVb.UpdateWhenDone=True
'Creates input list dialog box & allows the user to choose the state
Product_Code=InputListBox("Enter Product Code", MultiValue.List("Product_Code"), Product_Code, Title :="Product Code", ListName :="Available Codes")
'Writes values to iProperty
iProperties.Value("Project", "Cost Center")=Product_Code

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved