AutoCAD Inventor :: Use Filename As Parameter?

Nov 8, 2006

Is there a way to use the filename to drive the parameters of the file?

Example: I have a cube that is called 4x4x4.ipt its dimensions d0,d1,d2 are 4,4,4 respectively. I want to rename it to 4x4x6.ipt and have the dimensions d0,d1,d2 resize to 4,4,6.

View 9 Replies


ADVERTISEMENT

AutoCAD Inventor :: Batch Save Copy As PDF With A Custom Parameter Filename

May 14, 2012

An application that will let me choose a group of Drawing files (.idw) and perform "Save Copy As" to a PDF format on them. The Filename of each Drawing should be extracted from a custom Parameter I embeded in the IDW file.

I know I can use the Task Manager with a virtual PDF Printer to create these files, but then the PDF Filename will equal the IDW Filename, and I want it to be derived from the custom parameter I prepared inside the drawings.

View 2 Replies View Related

Revit :: Create A Parameter With The Filename?

Jul 30, 2012

It is possible to create a Parameter with the Filename? I have only found the FilePath parameter... 

View 2 Replies View Related

AutoCAD Inventor :: IV2012 Sp1 - Delete Unused Parameter Takes 4-5 Seconds Per Parameter

Dec 23, 2011

I have user parameters that are no longer needed and are not being used anywhere.  They each takes 4-5 seconds to delete, prior to 2012 this would happen instantly.

IV2014 SP1 64bit
Dell Precision T7500, Geforce GTX 480, DirectX11 306.97
SpaceExplorer 4.04, 3DxWare 3.12.2
Twin Intel Xeon E5506 2.13GHz, 12GB RAM, Win7 Pro SP1 64bit

View 6 Replies View Related

AutoCAD Inventor :: Convert Model Parameter To Reference Parameter?

Oct 2, 2012

I need to convert a model parameter to a reference parameter thru the API.

I saw this item discussed in the group before, but I cant find the thread.

View 4 Replies View Related

AutoCAD Inventor :: Set Parameter For End Value Of Parameter Animation

Dec 19, 2011

I got a deadline for my project, but I got a big problem:

"I cannot set the "parameter" for the End Value in Parameter Animate dialog"

For easy understand, let's see a example:

1. I got a part which has two parameters named: "A" and "MaxA"
2. I animate Favorited parameter A.
3. The End Value is MaxA_ (Everything is ok)
4. I finish Studio environment, then I change parameter MaxA_ from 200 mm to 400 mm
5. I turn back to Studio environment, the End Value now is "200 mm" (I want this will be MaxA_, so I can animate the flexible parameter). 

show me how to keep the end value will be "MaxA_" after I change parameter? 

View 3 Replies View Related

AutoCAD Inventor :: Ipart - Standard Parameter Column Change Depending On Custom Parameter Column

Jan 3, 2013

I am trying to publish to the CC a guide rail. The vendor of the rail gives me the option of entering the desired length of the rail. After that he gives me the option to choose between the length that I entered and a shorter and longer standard length witch can be delivered faster.

I want to do the same thing with my published part, but I cannot make a key parameter to change depending on the entered custom parameter. I want the user to make the next steps when inserting from the CC: 1- select the size of the rail; 2-select the type of the rail; 3- enter the desired length of the rail; 4- choose between the desired length and the 2 recommended lengths (I need these 3 lengths to be shown)

Is this possible?

View 9 Replies View Related

AutoCAD Inventor :: CSV Filename Not Working?

May 10, 2013

I am trying to write code to collect standard info from a csv file to be added to iProperties.

Following is the code I have so far.

Dim Separators() As Char = {""c} Words = ThisDoc.Path.Split(Separators) FilName = "C:VaultDesigns" & Words(3) & "Spec_Sheet.csv"

Dim ReadCSV As New System.IO.StreamReader(FilName) Dim WordSets As New ArrayList()

Do While ReadCSV.Peek <> -1 WordSets.Add(ReadCSV.ReadLine.Split(",")) Loop

i = 0 SName = iProperties.Value("Project", "Stock Number")

For Each wrd In WordSets  If WordSets.item(i)(0) = SName Then  iProperties.Value("Project", "Description") = WordSets.item(i)(1)  iProperties.Value("Custom", "Finish") = WordSets.item(i)(2)  End If i += 1 Next
 
The only problem I have is that this line crashes. I am not competent enough to understand why.

Dim ReadCSV As New System.IO.StreamReader(FilName)

View 3 Replies View Related

AutoCAD Inventor :: Change Filename Before First Save

Dec 17, 2013

I'd like to change the filename of a part before it's first save.The code would look somewhat like below. 

Private Sub m_appEvents_OnNewDocument( _ByVal DocumentObject As Inventor._Document, _ByVal BeforeOrAfter As Inventor.EventTimingEnum, _ByVal Context As Inventor.NameValueMap, _ByRef HandlingCode As Inventor.HandlingCodeEnum) _Handles m_appEvents.OnNewDocumentDim oDoc As Inventor.DocumentDim Name1 As String = "New Filename...."oDoc = DocumentObjectoDoc = oDocoDoc.PropertySets("Design Tracking Properties").Item("Part Number").Value = Name1oDoc.DisplayName = Name1oDoc.FullFileName = Name1.

The code partly works when opening a template but doesn;t work when create a an in place component or frame generated part? What do I need to modify to catch and change the filename before it's saved?

View 1 Replies View Related

AutoCAD Inventor :: Append Folder Location To Filename?

Apr 27, 2012

I am using this code snippet to open an idw.  With this code, the idw has to reside at the same file path as the current document. 

>>>>>>>>>>>>>>>>

Sub OpenIDW()
On Error GoTo Oops
Dim oDoc As Document
 Set oDoc = ThisApplication.ActiveDocument  
Dim sFullFileName As String    
sFullFileName = oDoc.FullFileName   
Dim sDrawingName As String   
sDrawingName = Left(sFullFileName, Len(sFullFileName) - 4) & ".idw"        
Dim oDrawDoc As DrawingDocument  
Set oDrawDoc = ThisApplication.Documents.Open(sDrawingName)  
Exit Sub  
Oops:     MsgBox "IDW File could not be found. FileName of IDW must be the same as this file.", vbInformation End Sub
>>>>>>>>>>>>>>>>>

"What if"... my idw is not at the same location, but under a subfolder instead..... like this

Part file c:designsDrawingsJobxxx

Idw file c:designsDrawingsJobxxxIDW

I am sure that this can be done by editing the line "sDrawingName = Left(sFullFileName, Len(sFullFileName) - 4) & ".idw"  " .  Everything I have tried did not work.

View 3 Replies View Related

AutoCAD Inventor :: ILogic Reading Beginning Of Filename

Jun 6, 2013

I'm attempting to create a rule using iLogic, which reads the first two letters of either the File Name or Part number (Which ever is easier)i.e. if a part number was AB12345, I would want the code to recognize the "AB"...At which point I'm trying to use an If-Then-Else statement to modifiy the material of the part, dependent on the first two characters of the File name.

As an example, where the underlined portion is what i don't know how to
If  iProperties.Value("Project", "Part Number") Begins with "AB" Then
    iProperties.Material = "Steel"
Else If iProperties.Value("Project", "Part Number") Begins with "AC" Then
    iProperties.Material = "Aluminum"
End If

View 1 Replies View Related

AutoCAD Inventor :: ILogic Access To Filename IProperty

Oct 13, 2011

I am trying to use the iProperties.Value("part1", "Summary", "iProperty") function to get the filename or complete filepath of a component within a subassembly. I know that these iProperties exist because I can insert them onto a drawing, and I see them in the general tab of the iProperty window.

However, when I try something like:

filename = iProperties.Value("part1", "General", "Filename")

I get an error message indicating that the General tab can't be found. How might I go about getting this filename iProperty, or is there an easier way?

View 4 Replies View Related

AutoCAD Inventor :: VB To Change Filename As Loop Progresses

Jun 8, 2012

I have VB code that loops through and utilizes Excel data to pick which file(s) to open, update, and close.  Then it opens the appropriate .idw file, updates it and saves it as a .pdf. 

The line of code I have now is simple:

_invApp.ActiveDocument.SaveAs("C:UsersxxDesktopA60.pdf", True)

and that writes the file to my desktop as a .pdf.

However, as the loop runs over and over, it will find another data set that is the same A60 type, so it will want to save OVER that .pdf it's already created.

How do I go about having a variable filename?  Something where it would add a _01 _02 _03 (or similar) to the end of the filename (i.e. A60_01.pdf, A60_02.pdf). 

View 1 Replies View Related

AutoCAD Inventor :: Define Filename On Subpart With Rule

Feb 6, 2013

I have an assembly which serves as a configurator. This Assy, needs to be copied many times. The assy contains 2 parts, which also must be copied. but when copied, the parts must have a new filename, and then the Rule cannot find them anymore. Therefore my plan is to define the filename with the configurator rule..

Example.:

Assy = Module.iam

Part1 = Module-1.ipt

Part2 = Module-2.ipt

I have this so far, but is doesn't work.. what do i put before the .ipt??

Filename = ThisDoc.FileName(False) 'without extension[Filname-1 inserted here].ipt.Diameter = "30"

View 9 Replies View Related

AutoCAD Inventor :: VBA Code That Allow To Get Filename From Border Of Drawing

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

AutoCAD Inventor :: Content Centre Prompted Filename And Part Number

Nov 8, 2011

Create a Content Center Part that prompts for a file name and sets the Part Number to whatever I save the part as? It would also be nice to... Have the browser Display name the same as the saved filename.

If I have a standard part with a blank filename, inventor will make the part number equal the filename at the first save. It is this functionality that I require when using Custom Content parts.

E.G. If I have a length of 'RHS 200x100x6.3 - 2000mm' selected from content centre and I want the filename to be saved as 'Part-001', then I would like the Part Number to be set as 'Part-001'.

If I then place the same member in another project/assembly I may want to call it 'ProjectPart-100', where the part number would then be 'ProjectPart-100' and so on.

This method ignores the filename entry in the Ipart table.

View 1 Replies View Related

AutoCAD Inventor :: Filename / Directory Name Or Volume Label Syntax Is Incorrect

Nov 30, 2011

"The filename, directory name or volume label syntax is incorrect. The database in K;lah/blahlah.widget.ipt* could not be saved".It's nothing to do with an improper name; even saving as the default 'Part 3' doesn't work.

At the moment I'm limping by using Save Copy As. Neither Save not Save As work at all.

View 3 Replies View Related

AutoCAD Inventor :: Save Copy As Doesn't Rewrite Filename 2013

Oct 9, 2013

When using save copy as to make an identical part with a different number, the file name in the top and the browser doesn't update to the new filenumber. only in the bottom file tabs is the name correct. if I go to file> save as I can also see the new filename. This is a hassle when doing this to multiple files in an assembly, as it makes it hard to keep track of which parts have been given a new name. It seems the filename input in the browser is only written once, and that is when the first file was saved for the first time. 

View 7 Replies View Related

AutoCAD Inventor :: Suppress BOM Info (filename / Stock Number) When Publishing To DWF

Dec 14, 2012

When I publish from Inventor to DWF (including sheets in the idw and an view of the iam assembly file) numerous part properties are included in the dwf that I would like to strip out so we don't share too much info with.

For example, filenames are included, stock numbers the complete bom from the model (as opposed to the parts lists that are shown in the idw's...  This info shows in the structured bill, and if you click on a part in the iam.

How do I filter all this out so I only show part numbers and descriptions in iproperties?

View 4 Replies View Related

AutoCAD Inventor :: Copy Filename To Part Number For All Parts And Sub-assemblies In Assembly

Sep 22, 2006

here's a macro I wrote to copy the filename to the Part Number iProperty for all parts and sub-assemblies contained in a top-level assembly. I wrote this after using a bunch of custom iParts and all the Part Numbers were the same for each part! (my fault of course, but a pain to fix one at a time).

Public Sub SetAllComponentPartNumbersToFileName()
Dim oAsmDoc As AssemblyDocument
Set oAsmDoc = GetActiveAssembly
If oAsmDoc Is Nothing Then Exit Sub
SetAssemblyComponentPartNumbersToFileName oAsmDoc
End Sub

[code]....

View 4 Replies View Related

AutoCAD Inventor :: Part Number In IProperties Is Automatically Updated To Match New Filename

Jun 13, 2013

When you do a Save As or Save Copy As in Inventor the part number in the iProperties is automatically updated to match the new filename. I would expect the Document.SaveAs method in the API to act in a similar way. However I found out that this is not the case.

SaveAs: Document.SaveAs(filename, False) does not update the part number. The new part will still have the same part number as the original part. This can give problems since in the BOM parts with the same part number are interpreted as the same physical part.

SaveCopyAs: Document.SaveAs(filename, True) does work as expected and the part number will update correctly.

Is this a bug in the API? or is there a reasonable explanation for this?

Inventor 2013 SP2

View 5 Replies View Related

AutoCAD Dynamic Blocks :: Passing A Value From The Action Parameter To A User Parameter

Dec 1, 2013

I need to use the dimension created by an action-parameter as a variable in a user defined function but AutoCAD will not allow me (see attached).

How may I access the action-parameter's dimension ?

View 1 Replies View Related

AutoCad :: Use User Defined Parameter To Drive Action Parameter?

Feb 7, 2012

it is possible to use a user defined parameter to drive a action parameter.

I have several polar and linear stretch actions i would like to drive from one parameter.

View 3 Replies View Related

AutoCAD Inventor :: Control Parameter With XML?

May 27, 2012

in Inventor 2010 we can save and load iLogic Paremeter with *.xml and just in my opinion we can control parameter using *xml or html. It's right or false?

how to control Inventor parameter with *.xml?

View 2 Replies View Related

AutoCAD Inventor :: Generating A Parameter

Oct 26, 2012

I need to extrude a simple shape between two planes and then get the length as a parameter. Is there anyway of generating this? All I can find is a parameter for the angle of the extrusion.

View 3 Replies View Related

AutoCAD Inventor :: How To Change G_L Parameter From In To Mm

Aug 24, 2013

I have generated frame that has 100 members in it. Is there a quicker way of changing G_L unit to a mm so that I don't have to go into all 100 parts to change the custom properties?

Also I do not need unit string to be appear in my BOM.

View 9 Replies View Related

AutoCAD Inventor :: Dimension And Parameter

Apr 14, 2009

I set a dimension to a 2dline. The dimension is automatically added to Model Parameters. How can I find , by code, the line which length is driven by the parameter ? Or, starting from the line find the parameter which indicate its length ?

::GetDependents(), nor ::GetDrivenBy(), nor ::GetParent() gives me the answer.

View 7 Replies View Related

AutoCAD Inventor :: Get Parameter Value From DWG File

Aug 6, 2012

I'm trying to get a parameter value from an Inventor .dwg file, but I keep getting an error saying the file is not found. I use this same code all over the place between different parts but its the first time I'm tried it using a dwg. Can you not access an Inventor .dwg parameters using iLogic .

MsgBox(Parameter(ThisDoc.Path & "MyDrawing.dwg", "Customer")) 

View 1 Replies View Related

AutoCAD Inventor :: Using Parameter In IProperties

Jan 6, 2014

Sometimes I change the dimensions of a material I use but then I have to open Iproperties and change the description by hand. This can create problems as you can understand especially when I forget to update the Iproperties.

Then I had the thought to automate it. Lets take a steel bar as example. I have thickness and width as parameter, both are exported and available under IProperties/Custom. But they show as 200 mm and 10 mm. I would like to loose the units. I tried also UL but then it reads 200 ul and 10 ul.

What I like to get are just the numbers, no units. I like to use it to create this  "steel bar 200x10" where the 200 and the 10 are linked to the Parameter and will change when I change the dimensions av the steel bar.

View 9 Replies View Related

AutoCAD Inventor :: How To Get Parameter From IPT File

Aug 8, 2012

I created a *.iam file. And from this asembly file, I need run some rules in *.ipt file.

I use

Parameter("PartA:1", "d12") = d12

to give d12 parameter in my assembly to d12 parameter in *.ipt. It works.

But I need get parameter in the *.ipt file after running the rules in *.ipt.

so, I put 

d13 = Parameter("PartA:1", "d13")

following above line.

But everytime, I just be able to get the result before *.ipt run the rules, not after.

I noticed the rules in assembly were compeletely run, then run the rules in *.ipt. So, the result is not correct.

I am using Inventor 2009 with ilogic. XP OS.

Autodesk Inventor Professional 2013 (64 Bit) SP2
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory

View 9 Replies View Related

AutoCAD Inventor :: Set Material As Parameter?

Jan 31, 2012

I would like to have the material, color etc. as parameter so i can change it with an ilogic form. 

In this video you can see what i mean:

[URL]

When I make a ilogic form i can only select parameters and iproperties.

View 4 Replies View Related







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