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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Drawing Program layer setting

BenLoosli
23-Emerald II

Drawing Program layer setting

We have a drawing program that sets a layer for a drawing classification marking in the corners. Depending on a parameter selected, the drawing program will set a drawing state and activate a layer with the required markings. My problem is when the program is finished it leaves the last layer in my list as the active layer and any annotations added to the drawing after that are placed on that layer which may or may not be visible from the parameter setting.

How do I exit the drawing program and set the system to use a standard annotation layer instead one of my special marking layers?

Creo 2 M220

Windchill 10.0 M040

Ben


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

Hi,

can you upload testing data and describe what action to do to reproduce your problem ? I am not able to prepare testing data, because I do not understand your problem.

MH


Martin Hanák
BenLoosli
23-Emerald II
(To:MartinHanak)

unfortunately the actual files are on a secured system and nothing comes off that system except text files which then get reviewed before I can post them here.

I can try and build new files that simulate what is happening on the unsecured side, but that will take a few days due to the complexity of the formats and the program. I would not build an exact duplicate, but enough to show the issue, if I can get the time.

Creo is very slow on the unclassified computers as they are not workstation class computers, but business desktops.

BenLoosli
23-Emerald II
(To:BenLoosli)

Let me reword the issue after doing some reading on layers.

We have a layer enabled by a drawing program driven from a parameter. When the drawing program finishes setting the proper layer, it leaves the last layer in the program as the active layer. This is usually a hidden layer, so any added annotations after this end up on this layer and invisible.

My questions are:

1) How do you set the active layer in a drawing file?

2) How do you see/verify what layer a symbol has been placed on? I have one symbol that is on all drawings, but no idea what its layer is, if any.

3) Is it possible to set the active layer from my drawing program while still leaving the layer set by the program visible?

Creo 2 m220

Windchill 10.0 m040

Hi,

unfortunately I am not able to imagine what is your drawing program doing.

Q1:

I have never used Activate command. All information I know is available on two following help pages

http://support.ptc.com/help/creo/creo_pma/usascii/#page/fundamentals%2Ffundamentals%2Ffund_six_sub%2FTo_Activate_a_Layer.html

http://support.ptc.com/help/creo/creo_pma/usascii/index.html#page/fundamentals/fundamentals/fund_six_sub/To_Deactivate_a_Layer.html

Q2:

You can search the symbol by its name using Search Tool. After clicking Find Now button you will get requested information.

Q3:

I guess drawing program is not able to run Activate/Deactivate command. If you have def_layer option defined in config.pro file then layer mentioned in this option is automatically activated.


MH


Martin Hanák

Hi  Martin,

This is balaji, 

I need to change Drawing Sheet format(from A3 to A4) Using VB.NET, I tried with below coding and I am getting error while “session.retrievemodel(desc)” run.

Dim Desc as IpfcModelDescriptor

Dim Sheetdt as IpfcSheetData

Dim Sheetfrmt as IpfcDrawingFormat

Dim Session as IpfcBaseSession

Desc = (New CCpfcModelDescriptor).CreateFromFileName(“a4_format.frm”)

Sheetfrmt  = session.Retrievemodel(Desc)

Error Msg:

At pfcls.IpfcBaseSession.RetrieveModel(IpfcModelDescriptor_MdlDescr).

Please help me to solve and further process.

Thanks

Balaji

Please create this question as a new discussion in Creo Automation.

I created new discussion in Creo Automation

Change Drawing Sheet format Using VB.NET (Sheet Setup)

Thnks

Hi,

I am sorry I can't help you, because I am not VB.NET programmer.

MH


Martin Hanák
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags