AutoCAD P&ID General Discussion

AutoCAD P&ID General Discussion

Reply
Distinguished Contributor
cawaugh
Posts: 207
Registered: ‎02-04-2005
Message 1 of 5 (460 Views)

Style questions

460 Views, 4 Replies
03-28-2007 06:44 AM
Are the "Graphical Class Styles" in the Project setup synonymous with an AutoCAD block and some of it's properties?
If I want to add some of my own symbols, is there a utility to migrate them into this format?
How are "Class Property Settings" and "Graphical Class Styles" related?
When I have in the "Graphical Class Styles" an endline for join type, is it suppose to add it to the end of a line or break the line and erase the segment that does not belong?

I've been through the help file and I don't see a clear explanation (my opinion) or answer to my questions.

Any help from beta testers or Autodesk on these?
*Jester
Message 2 of 5 (460 Views)

Re: Style questions

03-29-2007 05:31 AM in reply to: cawaugh
This is how I think it might work.

Draw or insert a block in a drawing containing your custom blocks.

for example Pump1, save the drawing

Open PID and a project and a dwg belonging to that project.

Open project properties by right clicking the project.

Goto Graphical Styles and pick the class to use as a basis (Pump - General),
pick New

New Graphical Style , Continue

In Graphical Style edit set the layer, colour etc and select the right block
in Symbol Details part

Set scale etc

OK

In Project Setup
Create Tool
-> you get a messy image of your new symbol somewhere in the very end of the
Tool Palette, drag it to the right location.

Apply

Test

This is roughly how I created b a custom pump block to my project. To create
your own class and its properties is an another story...

J.


wrote in message news:5533308@discussion.autodesk.com...
Are the "Graphical Class Styles" in the Project setup synonymous with an
AutoCAD block and some of it's properties?
If I want to add some of my own symbols, is there a utility to migrate them
into this format?
How are "Class Property Settings" and "Graphical Class Styles" related?
When I have in the "Graphical Class Styles" an endline for join type, is it
suppose to add it to the end of a line or break the line and erase the
segment that does not belong?

I've been through the help file and I don't see a clear explanation (my
opinion) or answer to my questions.

Any help from beta testers or Autodesk on these?
Distinguished Contributor
cawaugh
Posts: 207
Registered: ‎02-04-2005
Message 3 of 5 (460 Views)

Re: Style questions

03-29-2007 05:44 AM in reply to: cawaugh
Thanks for the response. I have all that down pat but I need a better clarification on questions 1 & 3. It's pretty interesting how all this is done but I would like to have a more thorough understanding of the relationships, how to set up blocks to work properly with the this program, etc. It seems that there needs to be a certain amount of intelligence (dynamic wise) to make them function properly, breaking lines, etc.
*Jorge Lopez
Message 4 of 5 (460 Views)

Re: Style questions

03-29-2007 09:28 PM in reply to: cawaugh
If you are familiar with ObjectARX, then you will understand the attached
diagram that illustrates the relationship between the AcPpAsset custom
entity, the AcPpAssetStyle, and finally the AcDbBlockTableRecord.

>> Are the "Graphical Class Styles" in the Project setup synonymous with an
>> AutoCAD block and some of it's properties?

Sort of. A Graphical Class Style corresponds to an AcPpAssetStyle class
instance. This is a non-graphical object in the DWG file (stored in a
dictionary within the NamedObjectsDictionary) that is used to define how an
AcPpAsset (the custom entity placed in modelspace) is displayed. The style
contains the color, layer, linestyle, linescale, etc and in addition it
stores a link to the block containing the geometry to be displayed by the
custom entity (aka. AcPpAsset).

What you place from the tool palette into modelspace in a custom entity of
type AcPpAsset. This custom entity fetches its display properties from the
style (AcPpAssetStyle) it is associated to and the style points to the block
definition where the geometry is stored. When the custom entity goes to
display itself, it draws all the entities in that block definition using the
other properties stored on the style (color, layer, etc).

>> If I want to add some of my own symbols, is there a utility to migrate
>> them into this format?

Use the project manager UI to make a new style. Then edit the style to point
it to the DWG and specific block definition you want to use for it. There is
even a button in the UI to create an icon on the tool palette so you can
drag-n-drop your item from the tool palette.

>> How are "Class Property Settings" and "Graphical Class Styles" related?

Class Property Settings is related to the project database schema. For
example, a GateVale has properties X, Y, and Z. Think of it as the columns
you see in the Data Manager for a given class type.

Graphical Class Styles define how a class is displayed in the DWG. For
example, a GateValve goes on layer A and is green.

>> When I have in the "Graphical Class Styles" an endline for join type, is
>> it suppose to add it to the end of a line or break the line and erase the
>> segment that does not belong?

The join type defines the expected behavior but it can be overridden by how
the item is used. For example, you can drop inline items out in space and
then draw lines from either end in effect making it an end-line asset. Most
of the behavior is defined by the class name itself. For example, if the
class is a "Reducer" then we know it should break the line when placed. I do
not believe we have documented all the specific classes we internally
capture for specific behavior. If you have a specific need, ask and I will
see what I can do for you.

- Jorge


wrote in message news:5533308@discussion.autodesk.com...
Are the "Graphical Class Styles" in the Project setup synonymous with an
AutoCAD block and some of it's properties?
If I want to add some of my own symbols, is there a utility to migrate them
into this format?
How are "Class Property Settings" and "Graphical Class Styles" related?
When I have in the "Graphical Class Styles" an endline for join type, is it
suppose to add it to the end of a line or break the line and erase the
segment that does not belong?

I've been through the help file and I don't see a clear explanation (my
opinion) or answer to my questions.

Any help from beta testers or Autodesk on these?
Distinguished Contributor
cawaugh
Posts: 207
Registered: ‎02-04-2005
Message 5 of 5 (460 Views)

Re: Style questions

03-30-2007 04:40 AM in reply to: cawaugh
That explains a lot.
It would be great to have an explanation in laymen's terms for the novice in the help file somewhere but I understand your answer.

Thanks!
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New AutoCAD P&ID Category!

The AutoCAD P&ID forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.