Delete one ReferenceDocument

All topics about specific development with COM interface, LIP language, API in VB, ...

Moderators: remi77, jacs, Daniel

AndiKS
Corporal
Corporal
Posts: 24
Joined: Fri Jul 31, 2009 10:43 am
TopSolid Module: TopSolid'Cam
TopSolid Version: 6.26

Delete one ReferenceDocument

Unread post by AndiKS »

Hello


I work with the API of TopSolid 6.10 and search for one option:

We have much References between our CAM-Files, how can I delete one Reference?

To read the ReferenceDocuments I use the following C#-Code:

Application app = new Application();
IDocument doc = app.CurrentDocument;

for (int i = 1; i <= doc.ReferenceDocuments.Count; i++)
{
string referenz = doc.ReferenceDocuments.FullName;
}


cu
Andi
AndiKS
Corporal
Corporal
Posts: 24
Joined: Fri Jul 31, 2009 10:43 am
TopSolid Module: TopSolid'Cam
TopSolid Version: 6.26

Unread post by AndiKS »

Hello

I found the answer!
To complete this Topic here it is:

string s = IDocument.FullName;
String[] o = new String[] { s };
IDocument.BasifyReferences(o);

cu
AndiKS
Post Reply