@Override
public List<Item> perform(ReadGraph graph) throws DatabaseException {
- Resource project = Simantics.getProject().get();
+// Resource project = Simantics.getProject().get();
Resource builtins = graph.getResource(libUri);
List<Item> actions = new ArrayList<>();
// actions.addAll(getItems(graph, project,type));
if (graph.hasStatement(r, p3d.VariableAngleTurnComponent) ||
graph.hasStatement(r, p3d.VariableLengthInlineComponent))
item.setVariable(true);
+ if (graph.hasStatement(r, p3d.AdjustableLengthInlineComponent))
+ item.setModifiable(true);
if (graph.hasStatement(r, p3d.SizeChangeComponent))
item.setSizeChange(true);
+ if (graph.hasStatement(r, p3d.RotateComponent))
+ item.setRotated(true);
return item;
}
}
}
- public static void finalizeDBLoad2(P3DRootNode rootNode) throws Exception{
- PipingRules.setEnabled(true);
+ public static void finalizeDBLoad2(P3DRootNode rootNode) throws Exception {
+ PipingRules.setEnabled(true);
for (INode node : rootNode.getChild()) {
if (node instanceof PipeRun) {
- PipeRun run = (PipeRun)node;
+ PipeRun run = (PipeRun) node;
for (PipeControlPoint pcp : run.getControlPoints())
- PipingRules.positionUpdate(pcp);
- //PipingRules.requestUpdate(pcp);
+ if (pcp.asPathLegEnd())
+ PipingRules.requestUpdate(pcp);
}
}
- }
+ PipingRules.update();
+ }
}