Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / name and color of STEP shapes

name and color of STEP shapes

name and color of STEP shapes
davide 2013/02/22 12:35
Hi.
I'm wondering why, exporting a piece of step file,
i can't get sub-assembly names and colors from the original step...

I'm writing with this command:
Dim w1 As New STEPControl.Writer()
w1.Transfer(shp, STEPControl.StepModelType.AsIs, True)
w1.Write(theFileName)

and Shp is retrived by STEPCAFControl.Reader with
r.SetNameMode(True)
r.SetColorMode(True)
r.SetPropsMode(True)
r.SetLayerMode(True)
r.SetMatMode(True)

using iterator over nodes
Dim node1 As TDataStd.TreeNode = CType(nodeIterator1.Value, TDataStd.TreeNode)
Dim Shp As TopoDS.Shape = XCAFDoc.ShapeTool.GetShape(node1.Label)

in the example "dm1-pe-214" is the original file
and "nba" is a sub-assembly (without names and colors)

You have to be logged in to download the attached file
 
 
Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map