AutoCAD .NET :: Reading XREF Tree From External Exe
May 25, 2013
I am trying to read the xref tree from a DWG by using an external exe. The app should simply open the DWG and sys-out the referenced paths and whether or not they are nested. For this, I am using Autodesk.AutoCAD.Interop. The problem is that I can only get a list of file dependencies (document.FileDependencies) and I can't seem to find an "isNested" value.
So far I've got:
AcadDocument document = oAcadApp.Documents.Open("Test.dwg");
foreach (AcadFileDependency o in document.FileDependencies)
{
System.Console.Out.WriteLine(o.FullFileName);
}
There is also the option to get Blocks, but again there is no "isNested" info, only "isXref":
foreach (AcadBlock b in document.Database.Blocks)
{
if (b.IsXRef)
{
...doStuff...
}
}
View 1 Replies
ADVERTISEMENT
Feb 6, 2013
I'm writing a .NET app to get corridor feature line information from an XREF'd dwg file to use in the active document. I'm having quite a bit of trouble reading the civil objects from the XREF.
[URL]........
This works, but still doesn't work for civil objects. Take a look at the snippet below.
if (xdb != null) { // Start a transaction in our loaded database // to get at the layer name Transaction tr2 = xdb.TransactionManager.StartTransaction(); using (tr2) { // Open the layer table LayerTable lt2 = (LayerTable)tr2.GetObject( xdb.LayerTableId, OpenMode.ForRead );
In order to get a Corridor ID collection I need a reference to a CivilDocument object. So how do I get a CivilDocument object when it isn't the active document? Is there any way to get it from a Document or Database object?
View 7 Replies
View Related
Nov 15, 2013
I know that in ACAD you can use the xref manager to see where the actual file for the xref resides on your computer/server/etc. What I'm curious about is whether or not the inverse action is possible. Can you somehow access the file (not the output sheet where it's being xref-ed) and see what other files are using it as an xref?
I've come in on a project that is nearing completion and have been assigned the task of "cleaning up the project folder." Unfortunately, there are a ton of files in the different folders that are no longer in use on the final output sheets and I need to keep the ones still in use and archive the ones that are no longer needed. What I've been doing is going through those sheets and reviewing the xref manager for each sheet to see which files are actually put onto those sheets and making a physical checklist from which to organize my findings. Once the checklist is made, I then archive all the files that are no longer being used.
View 9 Replies
View Related
Jul 31, 2009
Is it possible to run a lisp which can extract all the xref names, make a layer with that name and then change the xref on the layer? I have got a similar routine from earlier posts but it doesn't work if any xrefs inserted in paper space (works fine on model space). could change this routine allowing to change the layer of xref in paper space too.
(defun dxf (i a) (cdr (assoc i a)))
(defun c:lxr ( )
(setq ss (ssget "x" '((0 . "INSERT"))))
[Code].....
View 8 Replies
View Related
Oct 2, 2012
I am using (trying to anyway) a :VLR-xrefSubcommandReloadItem reactor. My only question is how to get the xref/block name from the 'reactor callback data' Object ID.
I am ultimately trying to pass it to (vla-get-xrefdatabase ....), but I cannot figure out how to turn the second parameter from the reactor callback data into something I can use - for example the second parameter returned may be "65" or some other number.
Civil 3D 2011
Windows 7 x64
View 1 Replies
View Related
Sep 17, 2013
when you bind an xref the link disappears from the xref manager.
is it possible to bind an xref, but preserve that link in the xref manager? i realize that will lead to two copies of the same object in the drawing (one xref, plus the new block). everyone's okay with that happening.
View 9 Replies
View Related
Jul 5, 2012
How do I get the full Xref Path name instead of Xref.dwg? I'm scratching my head is this totally under my nose... cause I don't see where the property is stored. I'm getting EV_BDR.dwg instead of C:folderEV_BDR.dwg
View 8 Replies
View Related
Jun 7, 2006
Using Inventor 10, I have replaced several components of my assembly with new copies of the components to be modified into new parts. For some reason the model tree still shows the old part numbers, but editing the parts reveals that they are indeed the new parts. How to correct the part listing in the model tree?
View 9 Replies
View Related
Oct 17, 2011
I have installed Autodesk in a new computer but for some reason when I access to the program, "History tree" is not showed by default.
I have tried a lot selecting options in "tools" and "preferences" but I can't locate where the option for displaying "history tree" is located.
View 1 Replies
View Related
Feb 28, 2013
I am trying to add a material with a specific density to the list of materials. After looking online it looks like I need to do that with the styles editor, but when I open the styles editor the only thing that I can work with is the lighting.
View 1 Replies
View Related
Oct 24, 2011
what the little symbol that looks like the recycle symbol is in the model tree is? I have several parts in this assembly and many of them seem to have this symbol that says adaptive next to them and I can't find and rhyme or reason to it. I am attaching a screen shot of it. I use Inventor 2012.
View 1 Replies
View Related
Dec 5, 2013
The model tree browser is freezing multiple times per day. Even if I close the browser and re-enable it in the View>User Interface menu, it is still frozen. It wont unfreeze until I close Inventor completely and re-open it.
Dell M6700
Win 7 Pro 64Bit
i7 3720QM 2.6GHz
16 GB RAM
Nvidia Quadro K3000M
View 5 Replies
View Related
Feb 27, 2012
Is there a filter ability for the model tree? What I need is I have a part that is buried within a sub assembly that I cannot find. I know the name, but what I am looking for is a tools that allows me to type in it's name and it show me in the tree where it is associated.
View 9 Replies
View Related
Mar 19, 2013
This just happened to me this morning, I split a part into a multibody part and as soon as I did the split, the entire design tree got greyed out. It doesnt matter if I have only one body visible or both of them, the tree stays greyed out. I can still edit features but its annoying to not know what is on and whats off. I opened a new file mocked up a quick part with various features performed a split and same results.
Autodesk Inventor Professional 2013
View 4 Replies
View Related
Jun 10, 2013
failure to refresh Model Tree after switching configurations - app restart required
We have a user who is getting this message several times per day and must restart his PC. He is the only user of the Inventor Vault product using 2013. We have redone his laptop and and given him a clean laptop with a fresh install of AutoCAD.
View 3 Replies
View Related
Oct 26, 2011
I've got a user who is seeing this lock symbol on some Content Center parts in his model tree. I've never seen it before and what is causing it. This results in a lot of errors when he tries to check in any files where this shows up. I can open the same assembly on my machine and the lock does not show up, and I can check the files in with no trouble.
View 1 Replies
View Related
Aug 17, 2012
I have an issue where a two positional representations are showing in the spreadsheet for editing, but not showing in the tree view.
I cannot delete a representation from the spreadsheet.
View 3 Replies
View Related
Jun 5, 2012
In assembly mode, when you right click on a part in the tree, you had ''open drawing'' as a choice. Now it's gone in IV 2013. how to add it ?
View 2 Replies
View Related
Nov 14, 2012
On my civil drafting project plate 1 I am trying to insert my Tree block and i type the coords in and it ends up way off screen but I insert a point at the same coords and it goes right where it needs to. What am I doing wrong?
Figured it out on my own by placing my tree on origin 0,0 and then creating block. not sure why that is the way it is but I got it to work for what I need it to do.
View 9 Replies
View Related
May 29, 2012
How we can WRAP a 3D object around a cylinder in either Autocad or Inventor!!!!
For instance, how we can wrap a 3d tree/leaf around a cylinder (see the attachment).
View 8 Replies
View Related
Aug 7, 2012
I need to rename some nodes in a classification tree but I keep on getting the exception.message "eInvalidInput" from the exception.source Acdbmgd.
Here is the
<Autodesk.AutoCAD.Runtime.
CommandMethod("RenameClassificationTreeNode")> _
PublicSub RenameClassificationTreeNode()
Dim ed AsEditor = Application.DocumentManager.MdiActiveDocument.Editor()
Dim db AsDatabase = HostApplicationServices.WorkingDatabase
[Code]...
'Here is the task: Remove paranthesis if present
IfNot (node.Id.IsNull) Then
Dim Clsfc AsClassification = CType(tr.GetObject(node.Id, OpenMode.ForRead), Classification)
Dim OldName AsString = Clsfc.Name
If OldName.Contains("(") AndAlso OldName.Contains(")") Then
[Code]....
View 2 Replies
View Related
Sep 5, 2013
C3DR14
I'm pretty sure I can replace my cogo point marker with a 3d tree that I can see in the object viewer using the realistic style and print out. Problem is where is that 3d block of the trees?
View 3 Replies
View Related
Aug 21, 2013
When I try to replace a component in Inventor 2014. It replaces it but does not update the tree in the browser. I have to manually delete the part and place a new one in.
View 9 Replies
View Related
Feb 13, 2013
How can I condense the 'history tree' that lists all the function? Like, putting multiple sketches into one folder and then being able to expand it to display all of them?
View 2 Replies
View Related
May 18, 2011
I am migrating into Inventor from Solid Works, which had a keyboard short cut for collapsing the parts tree in the browser. Is there a similar command for IV?
View 9 Replies
View Related
Nov 20, 2012
In Inventor Drawing Mode how to select the models in Browser tree using VBA, I think using selectset is not possible in my knowledge. Is there any other way to execute the selection .
View 1 Replies
View Related
Dec 1, 2012
How would I create a Point Table that would allow me to have Point#, Type, Size in individual columns when I have decription keys that area like this;
GUM 6 to be a 6" GUM.
Is there any way to have the data for the Type in one colum and the size in another?
C3D12
C3D12-13
Win7x64 6gb
View 3 Replies
View Related
Jan 22, 2013
Is there a way of getting a family tree of all the parts and sub-assemblies of a main assembly?
I would like this so I can keep track on what parts need drawings (manufactured parts) and if the drawing has been done.
View 5 Replies
View Related
Oct 4, 2012
I am looking to apply a set part number iproperty to the first, then second, then third components in the assembly browser tree in my iLogic rule, regardless of their current part number. (I need to select them by their position in the browser tree as their part number will vary). How do I do this?
View 1 Replies
View Related
Feb 8, 2013
i wanna use a existent project to make a new one, i copy all the files that I need to a new project, then I use Design Assistant to rename all files, everything works fine this way. I just saw now a little 'problem' that doesn't bother me, but can be a problem to other ppl who open this project and see the difference.
When I rename the file name from Design Assistant (opening it from the top assembly), all the parts get its PART NUMBER updated and all the files are renamed too, but...when i open the assembly, in the Model tree, no parts have the name updated, all keeps the old name, but if i open the part from the model tree, i open the correct part already updated and renamed, so, its just the model tree displays name that are incorrect. Is that known ? Is there a solution ? Or am I doing something wrong to copy or rename files ?
I realized that is happens most when i rename files from a top assembly with subassemblies. Sometimes when i use just one assemblie with just parts inside it, everything goes normal.
View 3 Replies
View Related
Sep 25, 2013
I`m working on the code that reads a list of virtual parts from Excel and adds required qty into the assembly. So far it looks good, I just need to know how to create a folder in a Assembly view tree and save virtual part in that folder instead of placing it in the root.
Dim occs As ComponentOccurrences
occs = asmDoc.ComponentDefinition.Occurrences
Dim identity As Matrixidentity = ThisApplication.TransientGeometry.CreateMatrixDim virtOcc As ComponentOccurrencevirtOcc = occs.AddVirtual(sVirtPart, identity)
View 5 Replies
View Related