AutoCAD Inventor :: Writing Referenced Document IProperties To Test File?

Dec 4, 2013

I am writing a external ilogic riule, which will iterate through all the referenced documents of the active assembly and write certain iproperties  to a text file.

The code is below

It works in that the text file is created and it does write the iproperties. HOWEVER it only writes the iproperties from the active assembly

' go through all referenced documents in a assembly . Grab the description,title and part number iproperties

' and print out a list  

If Not ThisApplication.ActiveDocument.DocumentType= kAssemblyDocumentObject Then
Return
End if

[Code]....

How can i fix this code so that it writes the iproperties for each oFileRef ?

View 9 Replies


ADVERTISEMENT

AutoCAD Inventor :: Finding Referenced Document Of Active Sheet

Oct 22, 2012

I'm trying to get the value of the Category iproperty of the model on the active drawing sheet.  This is not a problem in a single sheet drawing, but I'm not sure how to specifically retrieve the Referenced Document of the Active Sheet in s multi sheet drawing.

Here's what I have: 

Option Explicit

Public Sub PartsListFilter()

'set reference to the drawing document
'assumes that a drawing is active
Dim oDraw As DrawingDocument
Set oDraw = ThisApplication.ActiveDocument
[code]........

View 1 Replies View Related

AutoCAD Inventor :: Import IProperties Of Part File Into Assembly File?

Sep 24, 2012

I want to import some of the iproperties of one ipt file into an iam file.how to do it.

IV 2010 Suite
Digital Storm PC:
EVGA & Intel components
Win 7 Pro 64 bit

View 9 Replies View Related

AutoCAD Inventor :: ILogic Code Part Iproperties To Custom Iproperties

Sep 19, 2013

I was looking for some iLogic Code for Inventor 2013 that would cycle through all the parts in an assembly grabbing the quantity of each part and setting it equal to the custom property "Qty" of each part.

Having a little trouble creating the for each loop and setting reference to each part without referencing each part by specific name.

View 6 Replies View Related

AutoCAD Inventor :: Custom Iproperties Within Part File

Sep 18, 2012

we have a part file that has 2 custom iproperties in it.

Length and Width.

If I delete these properties its fine and the properties are removed.

However if I then save the file, the properties become available again.

View 3 Replies View Related

AutoCAD Inventor :: User-defined IProperties In Read-only IDW File Do Not Appear

Apr 10, 2012

I've some user-defined iProperties in my idw-file. As soon as I set the file to "read-only" (via explorer RMB->properties) these iProperties are not shown on the drawing sheet when i open the drawing. ow to abandon this effect?

View 3 Replies View Related

AutoCAD Inventor :: Read Iproperties Without Opening File In Apprentice?

Dec 22, 2011

I search a way in a Csharp program to read iproperties without open file in appentrice because it's time consumption. When we right-click on the file in the windows explorer, the iproperties come instantly.

View 1 Replies View Related

AutoCAD Inventor :: How To Acquire IProperties Information Without Opening File

Jun 27, 2012

I have to pick up the Iproperties information of each .ipt file into SQL Server. But I don’t know how to write a programming with VB.NET to acquire the Iproperties information without opening the file. 

View 2 Replies View Related

AutoCAD Inventor :: Import IProperties Value From External Excel File

Dec 14, 2011

i have made a iLogic Module who, whit an external rules, import the iProperties value from an external exel file.The exel file is connected from SQL with the our managerial software.This in the external rule:

i = GoExcel.FindRow("Z:DISEGNI_INVENTORDescrizioni.xls", "Descrizioni", "Cod.Art.", "=", iProperties.Value ("Project", "Part Number"))iProperties.Value ("Project", "Description") = GoExcel.CurrentRowValue("Descr. Articolo Princ.")'iProperties.Value("Project", "Project")
[Code] .....

 It's work fine but i have same question. There is some string to refresh an iLogic Module? When i push the ruel button the rule add the custom value in iProperties, but there are disabled, i have close the module an reopen it for correct display the value of the iProperties.

this module work with single parts. Can I do an rule who do the same thing of my string but in one assembly, do this for every parts of assembly automaticly??

View 7 Replies View Related

AutoCAD .NET :: Test For Duplicate Handles In A File?

Dec 3, 2013

How would I test for duplicate handles in a file. If I select a cirlce from an xref and it has a handle of "E6" Then I select another circle from a different xref that has the same handle. When I use GetObjectId how do I specify which handle? Is there a way to give a handle and a file path and have it point to the correct entity or would I need to cycle through all entities and check for matching handle and file name?

In the end I would like to select an object, then store that data in a file and then recall that exact same object later.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Writing File Path To TXT File

Dec 20, 2012

I have a file path im trying to capture in a text file however its not working and autocad is prompting back,

; error bad argument type: streamp nil

 Im assuming its because of the slashbacks but Im not sure..

Hence the code so far...
 
(defun C:GO ()(SETQ ACADLSP (findfile "acad.lsp"))(setq f (open "C: est.txt" "w"))(write-line ACADLSP f)(close f))

View 4 Replies View Related

AutoCad :: Export DWG File To STK With External Referenced Object?

Dec 27, 2013

I am trying to export the following .dwg file to .stl format but the object that has been externally referenced does not make into the .stl file.

here are the files...

complete turret.dwgkinect model.dwg

View 1 Replies View Related

AutoCad :: Check Drawing To See If Its Been Cross Referenced In Another File?

Dec 13, 2011

Is there a way to check a drawing to see if it's been cross referenced in another file?

View 1 Replies View Related

AutoCAD Inventor :: Get Vault File ID From Document?

Dec 25, 2013

I'd like to get the Vault file Id from an inventor document on the local workspace in order to be sure that it has been checked in (I want to be sure  that all the files on the local disk have been checked in).

View 2 Replies View Related

AutoCAD Inventor :: Simulating Tensile Test

Jul 11, 2012

Is there a way to simulate a simple tensile test in autodesk inventor. Let's say I draft up a 1" x 1" x 10" bar. If I input all of the material properties such as yield strength, tensile strength, % elongation etc., is there a way that I can simulate a simple uniaxial tension test on this bar? If so, how do I set it up with the autodesk simulation engine?

View 6 Replies View Related

AutoCAD Inventor :: Add-In - Change Document Name / Display Name / File Name

Oct 20, 2011

I already have been updating the DisplayName of documents but this name only shows in the Browser Bar and Title bar in Inventor.

When multiple documents are loaded, there are document tabs shown in het bottom area of the Inventor window, these show the File Name. I would like to show the DisplayName there but I don't knop how.

I'm using:

Win7 x64
Inventor 2011 pro
Visual studio Express 2008 - VB.NET

View 2 Replies View Related

AutoCAD Architecture :: Opening Drawing That Has Revit Export To DWG File Referenced

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

AutoCAD Inventor :: Referenced Files In A Drawing

Jun 26, 2012

I have a 2 part assembly on a drawing.  When I use the following code, checkFilename is giving me the full file name of one of the parts instead of the full file name of the assembly.  How can I fix this? 

Dim checkBalloon As Balloon
Dim valueSet As BalloonValueSet
Set valueSet = CheckBalloon.BalloonValueSets.Item(1)
Dim checkFilename As String
checkFilename = valueSet.ReferencedFiles.Item(1).FullFileName

View 1 Replies View Related

AutoCAD Inventor :: Weld Symbol Or Leader Test With Multiple Leaders

Jun 25, 2008

Is there a way to attach multiple leaders to text or weld symbols?

At the moment i am creating the "master" note, then insert "empty" texts and TRYING to get he leader to align.(the other problem is if i want to reposition)

View 2 Replies View Related

AutoCad :: Writing Plot Data To CAM File?

May 25, 2013

I am experimenting with a simple form of CAD/CAM and would like to be able to export the coordinates of my drawing to a data file in order to use it as an input file forthe CAM system. I am running AutoCad 2000 and would expect to be able to have this option available under the Plot command but have not been able to see how it can be done. For example, taking the simple case of a rectangle, I would like to be able to write to file the coordinates of the four corners of the drawing.

View 9 Replies View Related

AutoCAD Inventor :: Modify Referenced Model By ILogic?

Jul 24, 2012

I try to modify on a drawing the 3d model, using iLogic (same thing as Inventor "Replace model reference" command).

View 3 Replies View Related

AutoCAD Inventor :: Paths Of All Referenced Parts In A Drawing?

Oct 20, 2011

I am inside a idw that has views for couple of parts. From within the IDW is there a way to know the paths of the location that the parts are from?

I know if I use a design assistant I can know, But from within IDW?

C1
Inventor Professional 2013
Vault Collaboration 2013

View 1 Replies View Related

AutoCAD Inventor :: Leader To Referenced Part In Assembly IDW

Mar 22, 2007

I have placed an subassembly into another assembly that I am working on. This sub was then chagned to be a "reference". Now in the idw, I would like to pull a leader to the subassembly and I want the text in the leader to say what is in the "Title" Property of the subassembly. When I change the format of the leader text to be Type = "Properties-Model" and Property= "Title", I get the title of the part in the subassembly, not the title of the subassembly. It is like the subassembly is a phantom assembly, but it is not. The workaround is to manually type in the text, but this is a mistake waiting to happen.

Is there a way to get the leader to note the title of the subassembly correctly.

View 9 Replies View Related

AutoCAD Inventor :: The Parts Referenced No Longer Exist

Apr 8, 2013

I have a FG assembly that shows errors. The parts referenced no longer exist, but it still tells me there are errors on the sketches. Since the parts no longer exist in the assembly, or anywhere for that matter, how can I get rid of this error? I have tried making parts and naming them the same, which it allows me to do, but no luck in resolving the error. I can include the assembly but it is 63MB compressed and am running 2011.

Inventor 2011
Intel Dual Xeon E31225 @ 3.1 GHz CPU
16 GB RAM
NVIDIA Quadro 600 GPU
Windows 7 - 64 Bit

View 6 Replies View Related

Photoshop :: Delete Font Test Jsx File From Folder

Sep 8, 2013

Today as a precautionary measure I downloaded the Adobe font test to do a scan on my fonts to see if any is corrupt. The test showed that all my fonts passed. 3 questions though:
 
1. Does the script work with photoshop CC?
 
2. Could I just delete the font test jsx file from the folder when I am done with the test? Or should I keep it there?
 
3. During the initial process, I was unable to proceed and got an error message "failed to get path for font cache files". As such I unticked the clear font caches to proceed. Would this have affected the results?

View 1 Replies View Related

AutoCAD 2010 :: Writing A Script File With 2012

Apr 24, 2013

Writing a script file is more difficult with the current version of AutoCAD (2012) than i used to be with older version? What i wanted to do is to insert an as-built block to 198 drawings

Open a drawing

insert a block (same location, same scale, same rotation)

save

and close

Is there any other way beside writing a script file to do this?

View 2 Replies View Related

AutoCAD Inventor :: Make Referenced Components From Parts And Assemblies?

Oct 4, 2012

How do I make referenced components from parts and assemblies? (I searched the web and it said that that you can change it in the iProperties by selecting the Reference tick box under the occurance tab - but no such thing exists in Inventor 2011!

View 2 Replies View Related

AutoCAD Inventor :: Add Sketch To Part Using Face Referenced From Assembly

Jan 24, 2012

what im trying to do is select a face in an assembly and create a sketch on it in the part level

this is just one step in the program im trying to make the overall program will create a tube frame and the tubes will be driven from a base solid

Sub test1()
Dim asmDoc As AssemblyDocument
Set asmDoc = ThisApplication.ActiveDocument
Dim asmDef As AssemblyComponentDefinition
Set asmDef = asmDoc.ComponentDefinition
[code]......

View 1 Replies View Related

AutoCAD Inventor :: Column Referenced To Assembly Item Number

Nov 23, 2012

Is it possible to make the column 'REV' automatically equal to the 'Item' column in attached BOM view? I manually added the values 1 to 5 in the REV column for example.

Maybe with some ilogic rule? I don't know if it's possible and/or where to start.

When i place a mono-part-detail on a assembly drawing i want to be able to place a leader referenced to the REV value. When this is possible there is a link between assembly item number and the mono-part leader.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Writing Elevation Text In A Cad File From Text File

Jun 27, 2012

Write the elevation text in a cad file from attached text file.

In this text file Easting Northing and Elevations are given. We have hundreds of that text files.

View 9 Replies View Related

AutoCAD Inventor :: Material Referenced In The Sheet Metal Rule Could Not Be Located

Oct 5, 2012

I open my assembly and get this prompt."The material referenced in the sheet metal rule could not be located....."

There are several sheet metal parts in this assembly, so I am not really sure which part it is talking about.  Would be good if it listed the part number so I could correct it. So I am off to find the one that is causing the trouble.  I close my iam and open the first sheet metal part, no dialog box, so I assume its not this one. Close it, and open the next one.  No dialog box, so I open the next one..... I continue this until I have opened all the sheet metal parts in this assembly and NONE show me the dialog again.... huh!!  That was yesterday. 

I come in this morning, start Inventor and open one of the sheet metal parts from yesterday and immediately get the dialog again.  The problem is that this dialog will only appear ONCE per Inventor session.

Once I nailed down the offending part, I then tried to find the offending material. I dont really know what this dialog is telling me cause the materials for the rules are stored locally in the part.  Why is it even trying to reference a material in the library?

Windows 7 x64 -12 GB Ram
Intel i7-930 @ 2.80ghz
nVidia GTS 250 -1GB (Driver 301.42)
INV Pro R2013, Update2
Vault 2013

View 3 Replies View Related







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