×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Help to get catproduct user defined properties

Help to get catproduct user defined properties

Help to get catproduct user defined properties

(OP)
Hi cklong,

amazing aplication you have done!

I need to get the user defined properties as you are doing with your code. I've tried a lot of ways but non have work for me.

Could you please help me with this? which function or method are you using??

Thanks in advance!!

 

RE: Help to get catproduct user defined properties

Public TEA(500) As String
Public TEB(500) As String
Set opart = CATIA.ActiveDocument
Set PartDoc = CATIA.ActiveDocument.GetItem(opart.Name)
Set partnum = PartDoc
PNUM = partnum.PartNumber
descr = partnum.DescriptionRef
On Error Resume Next
Dim XTemp As Long
Dim TE As String
XTemp = 1
A1 = Len(partnum.Name) + 12
While parameters1.Count > (XTemp - 1)
strtemp = parameters1.Item(XTemp).Name
A2 = Len(strtemp)
Set strParam1 = parameters1.GetItem(strtemp)
strtemp = Right(strtemp, A2 - A1)
strt = strParam1.Value
TENUM = XTemp
TEA(XTemp) = strtemp

TEB(XTemp) = strt
XTemp = XTemp + 1
Wend
'this will get the properties name as TEA(1),TEA(2),...
'and the Value as TEB(1),TEB(2),...
 
i think this is what you need hope this helps you  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources