discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

isParametricObject function

bool isParametricObject(
  1. DraftDocument doc,
  2. Handle h
)

Whether h is a live parametric object of one of the floor planner's registered types (parametricCatalog), by the engine's own rule (isLiveObject): a root-level group carrying a registered component.

This list must name every type parametricCatalog registers: the engine has no "any registered type" query yet. A type left out is treated as a plain group, so the picker is disabled for it.

Implementation

bool isParametricObject(DraftDocument doc, Handle h) =>
    isLiveObject<BoxParams>(doc, h) ||
    isLiveObject<WallParams>(doc, h) ||
    isLiveObject<OpeningParams>(doc, h) ||
    isLiveObject<SeparatorParams>(doc, h) ||
    isLiveObject<RoomParams>(doc, h) ||
    isLiveObject<DimensionParams>(doc, h);