Fisher.xue
11-26-2006, 07:49 PM
In my flattened drawing, the center line is in the same layer with the pipe. and its line type is "ByLayer".
How can I preset the center line before flat a drawing.
What I want is: after flattened, all pipe center line is in the layer "Center", type is "Center", and color is "8" (grey).
Is there some relation with "compprop.ebs"? If so, please take a look at my "C:\Program Files\Bentley\Plant 2004\modules\Base\common\compprop.ebs"
'///////////////////////////////////////////////////////////////////
'//
'// Function for updating properties for centerlines
'//
'///////////////////////////////////////////////////////////////////
Sub at_CenterlineProperties_update
Dim compID As at_ComponentID
Dim compLayer As String
Dim compLineType As String
Dim status As Integer
status = at_Component_getCurrID(compID)
If(status = at_SUCCESS) Then
compColor = at_ComponentProperties_getColor(compID, "Comp_Color_Mode")
status = at_Component_modColor(compID, compColor)
compLayer = at_ComponentProperties_getLayer(compID, "Comp_Layer_Mode")
compLayer = compLayer + "_CL"
status = at_Component_modLayer(compID, compLayer)
compLineType = at_ComponentProperties_getLineType(compID)
status = at_Component_modLineStyle(compID, compLineType)
End If
End Sub
it is confused that from "compLayer = compLayer + "_CL" ", the center line shouldn't be in the same layer with the pipe.
How can I preset the center line before flat a drawing.
What I want is: after flattened, all pipe center line is in the layer "Center", type is "Center", and color is "8" (grey).
Is there some relation with "compprop.ebs"? If so, please take a look at my "C:\Program Files\Bentley\Plant 2004\modules\Base\common\compprop.ebs"
'///////////////////////////////////////////////////////////////////
'//
'// Function for updating properties for centerlines
'//
'///////////////////////////////////////////////////////////////////
Sub at_CenterlineProperties_update
Dim compID As at_ComponentID
Dim compLayer As String
Dim compLineType As String
Dim status As Integer
status = at_Component_getCurrID(compID)
If(status = at_SUCCESS) Then
compColor = at_ComponentProperties_getColor(compID, "Comp_Color_Mode")
status = at_Component_modColor(compID, compColor)
compLayer = at_ComponentProperties_getLayer(compID, "Comp_Layer_Mode")
compLayer = compLayer + "_CL"
status = at_Component_modLayer(compID, compLayer)
compLineType = at_ComponentProperties_getLineType(compID)
status = at_Component_modLineStyle(compID, compLineType)
End If
End Sub
it is confused that from "compLayer = compLayer + "_CL" ", the center line shouldn't be in the same layer with the pipe.