API Reference > Classes > PRC Graphical Classes > OdPrcCategory1LineStyle Class > OdPrcCategory1LineStyle Methods > createByMaterial Method > OdPrcCategory1LineStyle::createByMaterial Method (OdPrcObjectId &, OdPrcFileStructure &)
OdPrcCategory1LineStyle::createByMaterial Method (OdPrcObjectId &, OdPrcFileStructure &)
Syntax
C++
static OdPrcObjectId createByMaterial(const OdPrcObjectId & materialId, OdPrcFileStructure & postToFileStructure);
Parameters 
Description 
const OdPrcObjectId & materialId 
[in] An identifier of the material that should be used for the line style creation.  
OdPrcFileStructure & postToFileStructure 
[out] A reference to a file structure where the new line style should be created and saved.  

The identifier of the newly created line style object.

Puts new prc material in file structure globals, creates new LineStyle that uses that material and returns its object id

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.