PDA

View Full Version : Detail sketch



Bundsbaek
04-13-2007, 02:12 AM
Hi,
Anyone know have to get the DETAIL-SKETCH-IDENTIFIER in the PCF file? I guess it should be don by editing the opcfhdr.ebs by adding a custom function, but I'm not sure.

Anyone using detail sketch?
Regards
Jakob

wuzhongbo
04-21-2007, 10:59 PM
You can do it as follows:
1. Open PA, goto project -> database -> databases
2. Edit PROJDATA's tables, insert a new field named 'DETAIL' into PIPING
3. Goto open opcfhdr.ebs, find function PCF_ITEM_CODE, add these codes after PCF_ITEM_CODE = nStat:
Dim Detail As String
nStat = at_Component_getString(Detail, compID, "DETAIL")
If detail<>"" Then
nStat = at_XchgWriteText(" DETAIL-SKETCH-IDENTIFIER ")
nStat = at_XchgWritelnText(DETAIL)
End If
4. Open a Piping dwg, edit a component to add 'a.dxf' into filed 'DETAIL'
5. Open import/export to export the component's PCF file without Autorun ISOGEN, then you can see the DETAIL-SKETCH-IDENTIFIER in the output file.

But you should do a ISOGEN setup before generate ISOMETRICS. Good luck!

Bundsbaek
04-30-2007, 11:02 PM
Thanks a lot!
Now I only have a problem with the detail dxf. Seems only text and circles are placed on the iso. If I use lines ore polylines they are excluded. I'm saving both backingsheet and detail as R12.
What's the trick?