PDA

View Full Version : SPPID to Autocad Conversion



Smart Plant admin
06-28-2011, 12:02 AM
Hi All,

i am having problem in 'save as autocad'.I have modified export layer.xls, kept filter name as it is just changed layer numbers and same layer number changed in acad.dwg.asigned color and thickness here and saved it.
after running exportlayer.dll, i saved a P&ID.But when i tried to save it as autocad it shows me error as"error saving....dwg".

i thought it might be problem with border hence deleted border and cleared link, then tried to save it but shows same error again.i faced same problem long time before but not able to recollect it

below is smartplantpid.log

Error in igrSaveAs413 - SaveAsMSaveAs SaveForeignAttachmentsLinksEmbeds described as: Method '~' of object '~' failed, Error Number is: -2147417848
Error in SmartPlantPID - described as: Error in PidObjMgrAddIn.AddInClass::UpdateDatabase
Error in igrSaveAs413 - SaveAsMSaveAs SaveForeignAttachments described as: Automation error
The object invoked has disconnected from its clients. , Error Number is: -2147417848
Error in ShowLayer::ShowLayer - Method '~' of object '~' failed - described as: ShowLayer::ShowLayer - Method '~' of object '~' failed, Error Number is: -2147221504
Error in SmartPlantPID - described as: SPModelerSaveAs.ISaveAs:AfterSaveAsShowLayer::Show Layer - Method '~' of object '~' failed
==============================
Application Name: SmartPlantPID
Active Document: 10-T4031-02.pid
6/28/2011 - 10:45:32 AM
==============================
Error in SmartPlantPID - described as: ExportLayerMacro:: AddToNotSetList()
Error in draft - SaveAs.FSaveAs igCommand1_Initialize described as: Unknown error, Error Number is: 440

Patrick_Aps
06-28-2011, 10:54 PM
I found out that modifying the ExportLayer.xls is very tricky and a lot of confiiguration has to be done before you get anywhere.
Furhermore, I found that once a specific *.PID file was exported in a "Modified Exportlayer" way, that it was quite impossible to switch back to the origingal configuration of the export to DGN, in my case which had a better result.

So my advice is to
- use another machine where you did not modify anything and try to export another drawing.
If this works (you get a DWG, but perhaps not all is as you like), consider using Autocad (layer states) to modify the exported DWG's

Smart Plant admin
06-29-2011, 03:06 AM
hi Patrick,

i was expecting some hint form you or Dave.I managed to export it, but when i export it it changes colors for all layers to WHITE.So again i need to input colors for layers in autocad before PIDCLEAN.once i update it and runs PIDCLEAn it changes colors as required.....again struck in next step...it doesn't change format for different types signal lines as per drawings.also it doesn't change line weight and line type.It makes all contineous.
Autocad does not allow to asign different types of signal lines for a single layer in autocad, before running PIDCLEAN.

i am using Autocad2006 Full version.

Even it adds few layers automatically like CONSISTENCYCHECKS, DEFAULT, DRAWINGBORDER, HiddenObjects, LABELS, which i dodn't defined in exportlayer.xls.
please comment.

thanks in advance.

Regards,
Sandip

Patrick_Aps
06-29-2011, 10:28 PM
I do not now if this functionality is already available in 2006, but if I remember well it is present in the AutoCAD Bonus tools:
After changing all objects into colour and linetype "bylayer"
(-change, select objects: ALL change what P for Properties what properties C for colour, new colour BYLAYER, L for Linetype new linetype BYLAYER )
, you need to give the Layers the right coulurs and linetypes.
once this is done in one drawing, there was a command called layer state that takes a "snapshot" of all that is listed in the layer dialog: layer names, their colours and linetypes, if they are frozen...)
save the layer state in a file
in the next file, you only need to change all objects to bylayer
and then import the layer state.

As for the "unwanted" layers, these kind of objects exist in SmartPlant, so they get their own layer
To get rid of them, freeze the layers

then use WBLOCK to select all that is visible and save is as a "block" into a new filename
when you open this "block" as if it were a regular drawing, the layers should be gone.
If not, they are embedded into block that you need to Explode, Xplode or Burst (bonus tool command to explode and convert attributes to text)

I hope you can create the PIDs the way you want...

Lymebilly
06-30-2011, 03:12 AM
Hi
I have recently translated over 250 P&ID's to Microstation. I copied the .PID files and then used the SmartSketch Batch uitility to translate the .pid to Microstation. Probably be the same for Autocad.

jain
06-30-2011, 03:52 AM
Have you set PIDACAD.ini(Map file) and PIDACAD.dwg(Seed File) files in SPPID before using SaveAs command?

Smart Plant admin
06-30-2011, 10:18 PM
thanks Patrick,

Quite helpful.Will manage to do it.I am quite weak at Auto Cad.

Smart Plant admin
06-30-2011, 10:20 PM
I don't think PIDACAD.ini need to modify only need to check for auotcad version in PIDACAD.ini.PIDACAD.dwg modified as per intergraph procedures

Smart Plant admin
07-06-2011, 04:56 AM
hi,

how to set heat tracing lines.If in my projects different types of heat tracing(dotted,contineous,electrical) is used how can i make entry in export layer and pidacad.dwg.

when i extracted it is shwoing me contineous line.

Many Thanks,

Rgds,
Sandip

nene
10-24-2011, 02:18 PM
hi,

how to set heat tracing lines.If in my projects different types of heat tracing(dotted,contineous,electrical) is used how can i make entry in export layer and pidacad.dwg.

when i extracted it is shwoing me contineous line.

Many Thanks,

Rgds,
Sandip

Hi,
You should create in filter manager one filter for each heat tracing. Now, you have to edit the exportlayer.xls file of the reference data and thus add the filter and layers. Too you should edit pidacad.dwg for adding the same layers.

Be careful, if you are using sppid V2009.2 the exportlayer.dll doesn't work well. You should install SP3 or later. Currently version is SP4.

Thanks,

Patrick_Aps
10-25-2011, 11:46 AM
"it is shwoing me contineous line"
Maybe you did not look close enough or from far away enough:
Did you check the properties of the line in AutoCAD ? Maybe the LTscale has to be set to 25,4 or something like that.