cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

does toolkit can access to pattern tables?

rumly
1-Newbie

does toolkit can access to pattern tables?

Hello everyone , I want to access to pattern tables,but I can't find any
functions. Can you help me?



I want to modify the numbers of the pattern tables items.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
7 REPLIES 7
damir
5-Regular Member
(To:rumly)

No it doesn't. But, you can use prodevelop functions, like: proptntbl_set_inst_dim_value. See the ProTOOLKIT API Wizard.
FV
17-Peridot
17-Peridot
(To:rumly)

Hi all,

Pro/Toolkit has a number of ways to access pattern tables. You could either use old style Pro/Develop functions proptntbl_.... or use Pro/Toolkit style element tree manipulation/access functions. In later case you would need to create an element tree using ProPatternElemtreeCreate and use ProElemtreeElementGetfor PRO_E_PAT_TABLE_INSTANCE to access table items.

HIH.

Feliks.



In Reply to rumly rumly:

Hello everyone , I want to access to pattern tables,but I can't find any
functions. Can you help me?



I want to modify the numbers of the pattern tables items.

Feliks,

That is a very good suggestion but I was told by PTC support that
modifying patterns using the element trees didn't work. Which was why I
was talking to them in the first place, my code wasn't working. I had
to use the Pro/DEVELOP functions to modify the pattern tables. I was
using WF 3.0 at the time.



Patrick Williams | Sr. Applications Engineer | Engineering Systems |
Steelcase Inc. | 616.698.4078 | My Site
<">http://my.steelcase.com/Person.aspx?accountname=NA\PWILLIA3>






Here are the details of my ticket with PTC support.



I am trying to modify a value on a varying
dimension pattern. I have successfully
acquired the element that I want to modify,
modified it, and called ProFeatureRedefine
with the new element tree. When I call
ProFeatureRedefine the dashboard UI comes
up and asks what dimension I want to edit
instead of just redefining the feature. Am
I using the wrong sequence of functions(see
uploaded file)? What is the correct
procedure to modify an element and
redefined a feature?



I tried the following scenarios:
1. Using the elment tree to modify the pattern. Unsuccessful.
2. Using the handle of the datum plane pattern member and modifying the
dimension with ProDimensionValueSet. Unsuccessful.
3. Using the prodevelop function proptntbl_set_inst_dim_value to modify
the datum plane. Successful.

Conclusion: The prodevelop function works but the Pro/Toolkit functions
do not.



Description

Modifying a variable dimension pattern does not work using
ProDiimensionValueSet() or by modifying the pattern element tree.

Resolution

Using proptntbl_set_inst_dim_value() is the proper technique. Customer
may reopen the call by providing data for inspection regarding the
technique of modifying the element tree.





Patrick Williams | Sr. Applications Engineer | Engineering Systems |
Steelcase Inc. | 616.698.4078 | My Site
<">http://my.steelcase.com/Person.aspx?accountname=NA\PWILLIA3>






FV
17-Peridot
17-Peridot
(To:rumly)

Hi all,

Hi Patric,
I had similar problem with ProFeatureRedefine. I had ended up with the following workaround:
get pattern elemtree
modify pattern elemtree
delete pattern
create pattern with the new elemtree.

I don't know if this approach is any better then using Pro/Develop functions but at this time I was thinking that I would rather use newer functionality for the sake of code maintenance and hoping that ProFeatureRedefine would work in later releases.

Feliks.

bfrandsen
6-Contributor
(To:rumly)

Just a comment:
I would expect that the pattern should have no dependencies for that
workaround to be valid, where the Pro/Develop function would work in those
cases as well.
Regards,
Bjarne



"Feliks V." <->
11-03-2009 14:29
Please respond to
"Feliks V." <->


To
-
cc

Subject
[proecus] - RE: does toolkit can access to pattern tables?






Hi all,
Hi Patric,
I had similar problem with ProFeatureRedefine. I had ended up with the
following workaround:
get pattern elemtree
modify pattern elemtree
delete pattern
create pattern with the new elemtree.

I don't know if this approach is any better then using Pro/Develop
functions but at this time I was thinking that I would rather use newer
functionality for the sake of code maintenance and hoping that
ProFeatureRedefine would work in later releases.

Feliks.
----------

Feliks,

Yes I agree that your method would work just as well. Good thinking,
but I was able to achieve my result with the Pro/DEVELOP functions.
Hopefully PTC will get around to updating those functions to Pro/TOOLKIT
functions, but I'm not holding my breath.





Patrick Williams | Sr. Applications Engineer | Engineering Systems |
Steelcase Inc. | 616.698.4078 | My Site
<">http://my.steelcase.com/Person.aspx?accountname=NA\PWILLIA3>






Announcements