Search found 36 matches

by cam
Mon Sep 11, 2017 11:39 am
Forum: Specific Development
Topic: GetOperations
Replies: 1
Views: 521

Re: GetOperations

No one an idee ???? This is my part of code, that doesn't work. It allways jump into "catch" if (!TopSolidHost.Application.StartModification("My Action", false)) return; try { TopSolidHost.Documents.EnsureIsDirty(ref docID); if (TopSolidCamHost.Documents.IsCam(docID)) { List<ElementId> ops = TopSoli...
by cam
Thu Jul 13, 2017 11:57 am
Forum: Specific Development
Topic: GetOperations
Replies: 1
Views: 521

GetOperations

Hi,

I get a "System.NullReferenceException" on

List<ElementId> ops = TopSolidCamHost.Operations.GetOperations(docID);

The docID is correct.
by cam
Wed May 31, 2017 11:34 am
Forum: Specific Development
Topic: IDocuments.ImportWithOptions Method
Replies: 2
Views: 517

Re: IDocuments.ImportWithOptions Method

Bonjour Julien,

yes this is very helpful

Merci beaucoup
by cam
Wed May 24, 2017 9:51 am
Forum: Specific Development
Topic: IDocuments.ImportWithOptions Method
Replies: 2
Views: 517

IDocuments.ImportWithOptions Method

Hi folks

how can I get the importer Index and associated fileextension (e.g. ".step")
or a list of all importer indexes and the associated fileextensions
by cam
Thu May 11, 2017 8:18 am
Forum: Specific Development
Topic: TopSolidHost.Connect()
Replies: 0
Views: 443

TopSolidHost.Connect()

Hi,

is it possible to connect to a specific version, if several versions of TopSolid are installed ?
My idea is to popup a window, where the user can select the desired version.
by cam
Thu Feb 23, 2017 7:11 am
Forum: Specific Development
Topic: SetTextPublishingDefinition
Replies: 0
Views: 588

SetTextPublishingDefinition

Hi, how can I "Publish Text..." the material parameter "Material Name" by C# in my part document ? // docID = DocumentId of the currently edited part ElementId material_name = TopSolidHost.Elements.SearchByName(docID, "$TopSolid.Cad.Design.DB.Documents.ElementName.MaterialManagement"); String val = ...
by cam
Mon Nov 07, 2016 5:57 pm
Forum: Specific Development
Topic: ImportWithOptions
Replies: 4
Views: 1198

Re: ImportWithOptions

Hi, unfortunately the DXF importer has no such options.


https://drive.google.com/file/d/0B_ZZGb ... sp=sharing
by cam
Wed Nov 02, 2016 7:07 am
Forum: Specific Development
Topic: ImportWithOptions
Replies: 4
Views: 1198

Re: ImportWithOptions

Hi Mark, Thank you for your answer. Unfortunately, I have already tried this methode, and there is no option to define the import as 2D document. And..... Is there a possibility to define "all" layers to import in the importer options ? Then it will be able to have elements on the imported part. Gre...
by cam
Tue Oct 25, 2016 2:36 pm
Forum: Specific Development
Topic: ImportWithOptions
Replies: 4
Views: 1198

ImportWithOptions

Hi folks,

I try to get import a 'DXF' file into my project by Automation work.

How can I tell this methode to import the file as '2D Draft' ?
At the moment I get the file imported as Part. And the content of the part is empty.

Any idea ??
by cam
Thu Oct 06, 2016 9:48 am
Forum: Specific Development
Topic: How to get the Folders in my PDM tree
Replies: 2
Views: 731

How to get the Folders in my PDM tree

Hi there, how can I get the folderstructure of my PDM ? I try to write a little C# program that creates automaticly a project with a template in a specific folder in my PDM struture. At the moment, the program creates the project direct under the root folder. I think the problem is that I don't know...
by cam
Tue Sep 27, 2016 7:58 am
Forum: Specific Development
Topic: Get User Enumeration Parameter
Replies: 0
Views: 3580

Get User Enumeration Parameter

Hi folks, how can I get the user properties, defined as an enumeration in C# ? In my user properties library, I defined some text user properties and some enumerations. I want to get both out displayed in my datagridview o.k. I can't find a solution. So I decided to skip the enumaeration as user pro...
by cam
Mon Sep 19, 2016 6:19 am
Forum: Specific Development
Topic: Get User Properties
Replies: 0
Views: 3640

Get User Properties

Hi folks, I try do read userproperties defined in my part document. The properties are defined in a library. In the part I set the property. If I try to read this in my code the programm crashes. Here is my part of code. PdmObjectId userPropertyObjectId = TopSolidHost.Pdm.SearchDocumentByUniversalId...
by cam
Thu Jun 30, 2016 5:58 am
Forum: Specific Development
Topic: List materials in dropdown
Replies: 4
Views: 2045

Re: List materials in dropdown

Hi,

thank you very much.
I translated in C# and it works also well for me.

greetings
Christian
by cam
Wed Jun 29, 2016 6:52 am
Forum: Specific Development
Topic: List materials in dropdown
Replies: 4
Views: 2045

Re: List materials in dropdown

Hi,

I think the methode "GetProjectFolderConstituents" is the solution.
But.....
I don't know how to use it ?
Has anybody an example ?

For Missler.....
it would be nice if we can get examples "how to use" in the TopSolid.Automation Help
by cam
Fri Jun 24, 2016 2:04 pm
Forum: Specific Development
Topic: howto get project properties or parameters
Replies: 4
Views: 971

Re: howto get project properties or parameters

Hello,

thank you very mutch.
Now it works well.
Fine thing.....