Hoi allemaal
Na 7 jaar onderzoek is het me gelukt om op bundel te sorteren. Ik dank Visiativ support en Solidworks Electrical trouwens. Het heeft even geduurd ondanks een goede SQL query omdat de elementen goed " opgeruimd " moeten zijn. Ik ben onder
Bijgevolg:
- Per sublocatie (bundelparameter verdwijnt)
- Alle items op dezelfde locatie als de locatie van de bundel.
- Vink " Een nomenclatuur per bundel " aan (wijzig de SQL-query vooraf)
- De SQL-query:
SELECT DISTINCT
vew_cable_ex.cab_tag AS cab_tag
, vew_cable_ex.cab_id AS cab_id
, vew_cable_ex.cab_tra_0_l1 AS cab_tra_0_l1
, vew_cable_ex.vcablocfrom_loc_id AS vcablocfrom_loc_id
, vew_cable_ex.vcablocfrom_loc_text AS vcablocfrom_loc_text
, vew_cable_ex.vcablocfrom_tra_0_l1 AS vcablocfrom_tra_0_l1
, vew_cable_ex.vcablocfrom_loc_tagpath AS vcablocfrom_loc_tagpath
, vew_cable_ex.vcablocto_loc_id AS vcablocto_loc_id
, vew_cable_ex.vcablocto_loc_text AS vcablocto_loc_text
, vew_cable_ex.vcablocto_tra_0_l1 AS vcablocto_tra_0_l1
, vew_cable_ex.vcablocto_loc_tagpath AS vcablocto_loc_tagpath
, vew_cable_ex.cab_length AS cab_length
, vew_cable_ex.cab_reference AS cab_reference
, vew_cable_ex.cab_manufacturer AS cab_manufacturer
, vew_cable_ex.cab_tagroot AS cab_tagroot
, vew_cable_ex.cab_tagorderno AS cab_tagorderno
, vew_cable_ex.cab_hasneutral AS cab_hasneutral
, vew_cable_ex.cab_hasground AS cab_hasground
, vew_cable_ex.cab_gauge AS cab_gauge
, vew_cable_ex.cab_section AS cab_section
, vew_cable_ex.cab_wirecount AS cab_wirecount
, vew_cable_ex.cab_ductpath AS cab_ductpath
, vew_cable_ex.cab_diameter AS cab_diameter
, vew_cable_ex.cab_family AS cab_family
, vew_cable_ex.cab_articlename AS cab_articlename
, vew_cable_ex.cab_swfromcomp AS cab_swfromcomp
, vew_cable_ex.cab_swtocomp AS cab_swtocomp
, vew_cable_ex.cab_tra_1_l1 AS cab_tra_1_l1
, vew_cable_ex.cab_tra_2_l1 AS cab_tra_2_l1
, vew_cable_ex.cab_tra_0_l2 AS cab_tra_0_l2
, vew_cable_ex.cab_tra_1_l2 AS cab_tra_1_l2
, vew_cable_ex.cab_tra_2_l2 AS cab_tra_2_l2
, vew_cable_ex.cab_tra_0_l3 AS cab_tra_0_l3
, vew_cable_ex.cab_tra_1_l3 AS cab_tra_1_l3
, vew_cable_ex.cab_tra_2_l3 AS cab_tra_2_l3
, vew_cable_ex.cab_use_data0 AS cab_use_data0
, vew_cable_ex.cab_use_data1 AS cab_use_data1
, vew_cable_ex.cab_use_data2 AS cab_use_data2
, tew_bundle.bun_id AS bun_id
, tew_bundle.bun_defaultlocid AS bun_defaultlocid
FROM
vew_cable_ex
LEFT JOIN tew_bundle ON tew_bundle.bun_defaultlocid=vew_cable_ex.vcablocfrom_loc_id
WHERE bun_id =%CUR_BUNDLE_ID%
De eerste keer werkte het niet, je moet het project meerdere keren controleren. Folio's verwijderen en vervolgens opnieuw genereren. Aarzel niet om de kabels te controleren met een ontwerpregel.
Daar ga je, in de hoop dat het er een paar ontgrendelt.