Opened 7 years ago

Closed 7 years ago

#7015 closed defect (duplicate)

DXF: SetStyleString (Symbol Color) invalid

Reported by: licas Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 1.11.4
Severity: normal Keywords:
Cc:

Description

A few days ago, i submit this suspected bug.And then when i talked about the suspected bug with Even. Because my english is terraible, he minunderstood what i mean( I want to change the color on the feature in the "entities" layer.). I think i should submit this suspected bug again.

cad version: cad2014

ide: vs2015

Precondition:source.dxf,destination.dxf

Program download link:​https://drive.google.com/open?id=0BwOcIL25klCEcEVld3pQTkUyWUk

First i import the block from source.dxf to destination.dxf.And then i create a feature(geometry: point) in destioation.dxf(entity layer).The feature reference the block(feature->SetField?("BlockName?", "xx")) what i import from source.dxf. And i want to change the feature color. So i use feature->SetStyleString?("SYMBOL(c:#00FF00)").When i done, i open the destination.dxf in cad. I found the color is not valid.

Is this a bug or my problem?

You can download the program in the above link(I build this program in vs2015), the program includes the source.dxf and destination.dxf(AddDxfBlock??\AddDxfBlock??\Debug\data),you can open in the cad2014.

Also i debug the code, i find the color is writed the dxf file.(OGRErr OGRDXFWriterLayer::WriteINSERT( OGRFeature *poFeature ))

I'm very sorry for any inconvenience.

Look forward to your reply.

Change History (1)

comment:1 by Even Rouault, 7 years ago

Resolution: duplicate
Status: newclosed

I'm going to close this ticket to keep this bug tracker manageable. This is the same as #7009

Note: See TracTickets for help on using tickets.