Custom File Properties..?

Valued Contributor
Valued Contributor

 

Hi Jason,

i want to fill custom file properties to a part file. In Custom tab i want to add "Name" and "Value" through vb.net. i have attached a jpg file. Pls give me code snippet as it is on urgent basis.

Thanks in advance

Prasad Pawar (Design Automation Engineer)

 

Posted by: Prasad Pawar
Post date: 9/26/2007 9:06:28 PM

14 REPLIES

RE: Custom File Properties..?

Valued Contributor
Valued Contributor

There are already examples for you on this site. Go to the Downloads page and download the "Solid Edge Developer Conference 2006" material. There are a ton of examples in there.

 

Posted by: Jason Newell
Post date: 9/26/2007 9:26:15 PM

RE: Custom File Properties..?

Valued Contributor
Valued Contributor

Jason,

it is not getting download. i think there is some prb......other material is getting download.

 

Posted by: Prasad Pawar
Post date: 9/27/2007 1:13:22 AM

RE: Custom File Properties..?

Valued Contributor
Valued Contributor

Can you be more specific about what the problem is? I just tried the download and it worked for me.

 

Posted by: Jason Newell
Post date: 9/27/2007 8:40:32 AM

RE: Custom File Properties..?

Valued Contributor
Valued Contributor

To get you going, here is the code.

 

 

' Add reference to PropAuto.dll

Imports SolidEdgeFileProperties

 

Module Module1

 

Sub Main()

Dim objPropertySets As New SolidEdgeFileProperties.PropertySets

Dim objCustomProperties As SolidEdgeFileProperties.Properties

 

objPropertySets.Open("C:\Program Files\Solid Edge V20\Training\Coffee Pot.asm", False)

objCustomProperties = objPropertySets.Item("Custom")

objCustomProperties.Add("Name", "Value")

objCustomProperties.Save()

End Sub

 

End Module

 

 

Posted by: Jason Newell
Post date: 9/27/2007 8:47:09 AM

RE: Custom File Properties..?

Valued Contributor
Valued Contributor

 

Ohh!! Thank You very much jason......

 

Posted by: Prasad Pawar
Post date: 9/27/2007 11:32:04 PM

RE: Custom File Properties..?

Valued Contributor
Valued Contributor

Hi,

I have found this forum in the last navigation hour, and I'm finding it very interesting.

I have been registered since 5 minutes, but I can't find the "download" section; it should be very usefull for me to manage custom properties.

 

Many other posts publish links in the "http://www.jasonnewell.net/portal/Products/" folders, but it seems to me that it doesn't exists.

 

Thanks for your help

Alessio

 

Posted by: Alessio Rossi
Post date: 9/29/2007 7:46:58 AM

RE: Custom File Properties..?

Valued Contributor
Valued Contributor

I think I have found it: it's a bug... with my home linux, with Firefox and Epiphany I can't see the download section. With Konqueror I can

 

Alessio

 

Posted by: Alessio Rossi
Post date: 9/30/2007 5:10:11 AM

RE: Custom File Properties..?

Valued Contributor
Valued Contributor

Posted By alex on 09/29/2007 12:46 PM

 

Many other posts publish links in the "http://www.jasonnewell.net/portal/Products/" folders, but it seems to me that it doesn't exists.

 Hi alex and welcome to the fourms.

That is an old link.  Acutally any link with /portal/ is old.  I switched hosting providers earlier in the year and upgraded the site.  Glad to have you here.

 

Posted by: Jason Newell
Post date: 9/30/2007 7:18:07 PM

RE: Custom File Properties..?

Valued Contributor
Valued Contributor

Jason, thank for your answer.

 

Actually I'm unable to download the "Solid Edge Developer Conference 2006" file, the download stops work at about 90%. I have tried many browser, under windows too.

Does anyone else have this problem?

 

I can download other files correctly.

 

Alessio

 

Posted by: Alessio Rossi
Post date: 10/1/2007 4:38:09 AM