PDA

View Full Version : Changing the layer Topworks are placed on



AplantAdmin
04-05-2007, 06:25 AM
Hey guys,

I'm looking for some help. I need to be able to get the topworks placed on a layer like other attachments. ie, like gaskets or welds.

So i'm trying to get the layers to look lile line#_welds, Line#_gaskets, Line#_topworks.

Bently support tells me to update the compprop.ebs and to just copy over a section like what they have done within that file for gaskets, welds and bolts. i have done this but am not seeing any changes in my model.

Colby
04-10-2007, 10:14 AM
Steve,

One Cheesy way of doing it is like this.
First add a new
in the

"Function at_ComponentProperties_getLayer(compID As At_ComponentID, ModeVar As String) As String"

where you see all the "DIM" statements add this

"Dim Class As String"

In the Linenumber Case

" status = at_component_getString(compLineNumber, compID, "LineNumber")
If(status = at_SUCCESS) Then
status = at_component_getString(class, compID, "CLASS")
'
Select Case ucase(class)
Case "AT_TOPWORKS_GEARACTUATOR"
tempLayer = tempLayer + "_TopWorks"
case else
tempLayer = compLineNumber
end Select
End If
"

Where you see Case "AT_TOPWORKS_GEARACTUATOR"
Add Another This for each TopWork

Case "AT_TOPWORKS_WHATEVERYOURTOPWORKSIS"
tempLayer = tempLayer + "_TopWorks"


Let me know what you think

PS You will find all the Topworks in the Class.ini

AplantAdmin
04-11-2007, 06:15 AM
Colby

Is this all done in the topworks .ini or did you do this in more than one file.

Steve

Colby
04-12-2007, 09:58 AM
This is done in the Commonprops ebs

Sameer
02-25-2008, 12:03 PM
Colby,

Could you please help me in modifying the same for supports layer.
i tried using same for support but no results. please be more specific with file names and where to add script as this is my first project in Autoplant.

Thanx a lot in advance,

Sameer.

Colby
02-28-2008, 06:26 AM
Sammer,

I will have something for you in a day or so