Skip to main content
1-Visitor
November 8, 2012
Question

Pattern Feature with VB API in WF4

  • November 8, 2012
  • 2 replies
  • 781 views

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

15-Moonstone
November 9, 2012

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

1-Visitor
November 12, 2012

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