Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

How to list parameters names

ezaidi

New member
Hi I am looking for a way to list all parameter names in my assembly. I am currently stuck and do not know which method to use to do this. So far I can get the count of paramters that exist however I cannot get their names. If I know the names I am able to use the getparam method and get the value. Please help!


-------------------------------------------------------


Dim asynconn As New pfcls.CCpfcAsyncConnection
Dim conn As pfcls.IpfcAsyncConnection
Dim session As pfcls.IpfcBaseSession
Dim oModel As pfcls.IpfcModel


Dim new_paramowner As pfcls.IpfcParameterOwner
Dim inputVars() As IpfcBaseParameter
Set conn = asynconn.Connect("", "", ".", 5)


Set session = conn.session


Set oModel = session.CurrentModel


Set new_paramowner = oModel


For i = 0 To new_paramowner.ListParams.Count - 1
FOR EACH GET PARAMETER NAME
Next


------------------------------------------------------------
 
You could do something like this -
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>


For i = 0 To params.Count - 1


param = params(i)


strParameterName = param.Name</BLOCKQUOTE>





It is strange that .Name property doesn't comes in parameter but compiles and executes correctly.
 

Sponsor

Articles From 3DCAD World

Back
Top