Skip to content

sketch in dataset causes "Some constraints are not applicable to the current external references and have not been solved." #24

@huangdi95

Description

@huangdi95

When interacting with Onshape's API with the guide of demo, I find some sketches in the dataset result in the warning "Some constraints are not applicable to the current external references and have not been solved."

Will this affect Onshape's solver? what causes the warning and how to deal with it?

code below

from sketchgraphs.data import flat_array
import sketchgraphs.data as datalib
import sketchgraphs.onshape.call as onshape_call

dataset = 'validation'
url = R'https://cad.onshape.com/documents/xxxxxx' # onshape document url

seq_data = flat_array.load_dictionary_flat('sequence_data/sg_t16_validation.npy')
seq = seq_data['sequences'][100746]
sketch = datalib.sketch_from_sequence(seq)
onshape_call.add_feature(url, sketch.to_dict(), 'my sketch')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions