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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Pattern Feature with VB API in WF4

cvansickle
2-Guest

Pattern Feature with VB API in WF4

All,


I have need to pattern features using the VB API in WildFire4. If I understand correctly, you cannot create a pattern using the VB API. Because of this limitation, I am forced to resort to the use of macros. This method works, but it requires the manual selection of feature that needs to be patterned. After the following point, the feature is prompted for.


proConn.bsession.RunMacro("#MACHINING;#UTILITIES;#PATTERN;")


How would I go about passingthe feature of interest to Pro/E once the program has a handle to it?


Thanks,


Corey



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.
2 REPLIES 2

I think You have two possibilities:


1. You select the feature with VB API and a selective buffer.


session.GetCurrentSelection Buffer()


Clear selection


Add item to selective Buffer


2. You select the feature with the Search Tool inside of a Mapkey


Edit -> Search



Best regards,


Eike

Thanks. I ended up using the search tool to find the feature based on its feature number. I couldn't access the selection buffer without first activating the current window, which reset the manufacturing menu that I was using to pattern.


Thanks,


Corey

Top Tags