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 ?
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]........
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.
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?
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.
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.
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:
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??
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.
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).
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?
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
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.
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
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)
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.
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.
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
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?
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?
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!
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]......
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.
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?