I am working with an action macro to be able to use the EXPORT PDF option (save into current folder as DWG with no user input) / save the current drawing / and close.
At present i am able to get the macro to export the pdf and then (user input to directory to save and to overwrite the previous file) then save the file but cannot close the drawing.
I'm currently using Inventor 2012 and i need a macro (code): I want to know if it's possible to export all the information from the parameters list (everything, names, values, tolerances, comments...) to an excel spreadsheet or a txt file (it can be a table, or a CVS file, i just want that information!), from a part file (.ipt) or a drawing file (.dwg).
Currently, i can only export the parameters' names and values , but i can't get to the tolerance values and comments . . .
I have an iassembly which contains around 500 different members. There aren't any major differences between the members other than parts being Included/Excluded and parts being replaced by similar parts (this can all be done in the table as the parts are all created as one ipart family).
I need an assembly drawing for every member. As the drawings will be very similar, it is possible to just create one drawings then use 'Save as' and 'replace model reference' to create the whole lot. As this process would be very tedious and time consuming, I want to create a ilogic program or a VB macro to automate this process.
Basically i need a program that will...
FOR every line in the table (say 1 to 500)...
look at the currently active drawing...
replace model reference (for 2 views and a parts list) with the appropriate member (whos file name will match it's Part Number)...
save as with a file name that matches the current rows Part Number...
I have problems with exporting a Inventor drawing to dwg autocad drawing, the message I get when a try is: Cannot open XML file: c:....Inventor 2014/InventorCustomization.xml.
I've recently had an issue when attempting to export to PDF from a drawing in Inventor Professional 2013 64-bit. The completed pdf is missing random characters in the dimensions, title block, etc. I've attached an example of this issue, which is now affecting all of my new drawings (the boundaries on the attached PDF are a little wonky from where I redacted).
What's funny is that this began suddenly, I have been using "Export to PDF" to produce dozens of drawings since AI 2013 was released. The only thing different is that I'm using a custom title block (hard-coded, no parameters) instead of the default. The machine is Windows 7 64-bit.
I am trying to write an external iLogic rule that will export the unfolded model of a sheet metal part in a drawing from a rule triggered in the .idw. These drawings will contain only one model reference. The reason for doing this from the drawing are as follows:
1) The location of the resulting .stp file must be the same directory as the .idw file. our file structure does not co-locate these files so the drawing path is required to locate the .stp file.
2) The current Drawing Rev level is to appended to the .stp file name. We do not populate the Rev iProperty in the part.
I have scabbed together some code from verious deep dark corners on the internet and Have arrived at the code posted below, but It errors during the .stp file creation with the following:
Error Message:
Error in rule: STEP Export With Rev, in document: 4000401-02 Blank Pattern.idw Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
More Info:
System.Runtime.InteropServices.COMException (0x80004005): Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL)) at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at Inventor.FlatPattern.Edit() at LmiRuleScript.Main() at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem) at iLogic.RuleEvalContainer.ExecRuleEval(String execRule).
I have created an assembly containing several parts. I want to export several text parameters of the assembly and parts into the i properties of the corresponding idw so that I can use them in a text block.
I was wondering if there is a way to export or save an assembly drawing to .dwg format (that can be opened by cad or acad mechanical) in such a way that all the parts of the assembly are exported as individual blocks (within the same file) To explain- lets say I have a .i am out of which I create a drawing (.dwg for inventor). Then I export or save this as acad dwg. This acad dwg should have all parts of the assemblies as blocks so that if I want to work on a particular part in the 2d environment of acad, that is possible.
in Inventor I use my own library with different layers, font types, colors, lineweights etc. In Inventor drawing it works well. But after exporting to DWG only colors of different layers stay the same; all fonts, lineweights change to one (maybe some kind of default) font, lineweight.
How could I repair that, I need drawing in DWG to look like the same as in Inventor. I have tried to use "Configuration" in DWG file exporting option and I have created my own configuration, but it did not work... I simply do not understand how it works. If the "Configuration" in DWG file exporting option is the clue -
I'm having real difficulties getting my drawing borders to work between Inventor and AutoCAD. I am using Product Design Suite 2012.
I have created a drawing border using Inventor, which is the template for any drawings I produce. I often export the Inventor drawings into AutoCAD 2007 dwg's to send to customers. However, it seems all the text goes up the creek after the export...
When I open the exported AutoCAD drawing, first I explode the drawing border. Then, if I scale the border from within AutoCAD, none of the text wants to scale up. - I've attached the border. I've tried several different ways to fix it using text styles, heights (setting to 0) etc and still no luck!
I am trying to write a quick macro to open the current drawing in the block editor. I can easily do the steps from the dialog box to open the current drawing, but the command line version give me an error.
Command: -bedit Enter block name or [?]: <current drawing>
(A message box pops up saying, "The name cannot be longer than 255 characters."
If I click ok on the message box, AutoCAD returns to model space. The file name is 30 +/- characters, and the path is maybe another 50 to 100 characters. Can I bedit the current drawing using the command line, or must I use the dialog box?
When I create a new dwg, I use a macro to set all the system variables in the drawing - ltscale, hatch scale, etc. I also use the setq function and define a few new "variables" in the drawing. For instance I use setq to define a variable I call "sf" and set it equal to 72. Everything works great and I do my work and close the drawing. Next time I open the drawing, all my custom variables no longer exist. I have to use redefine them all over again. Is there a way to get these custom variables that I create with setq to stick with the drawing permanently - so I do not have to redefine them every time I close/open the drawing?
I'm just trying to put together a macro that will automate saving a selected group of objects to an AI file, however, I need it to be Compatible with version 8.
I've followed code from older posts to the forum and have successfully exported out a PNG file... I'm hoping to just alter that... here is what I have so far:
Export each page (maximum object boundary not page boundary) as JPEG to my given path with unique file name. (file name will provided on each page as filename).
a tip for solving the problem of exporting an image as a tif led to another question. One solution to export as tif was to create a macro. See that solution post here: [URL] .......
It says : Step 1Run the built in macro. (Tools > Macros > Run Macro). In CorelDRAW versions prior to X4 (Tools > Visual Basic > Play). Select ‘File Converter’ macro from the ‘Macros in’ list and click ‘Run’
However in my macros drop down there are no macros. how can I get a file converter macro?
When I am done with a drawing (inventor .dwg), I manually go to "Save Copy As" and select DXF, and using my default options, save the drawing as a DXF on a server (OUTSIDE of vault) that our shop guys can access for CNC stuff. I understand there is a DXF Translator that I may be able to set to do this for me. How to use Inventor add-ins (my translator is loaded, thats as far as I got) or set them as macros. A button on the ribbon to export to DXF would be nice and I may also want to automate this further and have it do it on file save.
We want to change iassemblies in a table using macro. When we change an iassemblies, inventor asks "Do you want to save changes to ......?". There are many iassemblies in our model, so it takes serious amount of time. We can disable all messages using macro, But this time after macro completion, there may be some errors in model, because we dont accept all changes. How can we accept all changes while running macro?
We use SilentOperation property. but in Save dialog, there are some parts indicated "yes" and some indicated "no". how can we change them "yes" and save all dependents?
I trying create simply macro for my work. It is mass rename for *.ipt files and their iProperty.And i need create condition "IF" for this (example 2 files):
Public Sub UpdateDocs()'JDK 2013' Include REF to Microsoft Scripting Runtime Dim oApp As Application Set oApp = ThisApplication Dim oDoc As PartDocument Dim oPropSet As PropertySet Dim FSO As New Scripting.FileSystemObject Dim oFld As Scripting.Folder Dim oFile As Scripting.File Dim Path As String Dim sTitle As String. [code]....
How do you insert macros available in the user community in to the inventor. I tried to open default.ivb file and copied in it but it doesn't work. Any example which shows how to place macros in the inventor.