I have the following setup for aquiring the pipeline segment that an instrument is connected too.
All pipeline segments have a field called "PipelinePnPID"
Using a VB Net script I populate this field on each pipeline segment with its own PnPID No.
Each Instrument has an acquired field called "PipelinePnPID" which aquires the pipeline segment field "PipelinePnPID".
The problem I have is that the aquired field does not always aquire the Pipeline Segment field "PipelinePnPID".
I can reactivate it using the data manager and selecting "Manual Mode" and then back to "Acquire Mode".
Is there a way of refreshing all aquired fields, or a VB net routine I can run through a sheet?
Note this same problem ocurrs with the built in "Size" and "Spec" fields too.
Thank you for any help
Just curious, if you manually type in the "PipelinePnPID" value on a pipe run and then select an attached instrument does the acquisition data show up?
If so then I would say the population of the data via the VB script is causing something to be bypassed as far as a refresh on the acquision rule.
If you're familar with ObjectARX and .NET programming I would recommend checking into the AutoCAD Plant 3D & P&ID SDK documentation.
AutoCAD P&ID and AutoCAD Plant 3D SDK
Once you're installed the SDK there is a P&ID ObjectARX Class Reference available in the help file
SDK Install Path\PlantSDK 2012\docs\plantsdk_ref.chm
Thanks for your reply Jason.
Yes typing the value in the "PipelinePnPID" does get aquired onto the Instrument.
I did finally use the ObjectARX and .NET programming to refresh the aquisitions.
so just doing:
DataLinksManager.SetProperties(RowID, sKeys, sVals)
Doesn't follow through updating the aquisition rules in the API.
It would be very useful to be able to aquire the PnPID field directly throught the Acad P&ID interface.
Also it would be handy to have a refresh all aquisition rules directly throught the Acad P&ID interface too. (Audit doesn't do it)
I appreciate your feedback on this issue. I will log this with the development team.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register