Bonjour à tous,
Après 7 années de recherches, j’ai reussi à faire un tri par liasse. Je remerci le support Visiativ et Solidworks Electrical au passage. J’ai mis du temps malgrès une bonne requete SQL car les éléments doivent être bien « rangés ». Je suis sous
Du coup :
- Par de Sous localisation (le parametre de liasse disparait)
- Tous les éléments dans la même localisation que la localisation de la liasse.
- Bien cocher « Une nomenclature par liasse » (modifier la requete SQL avant)
- La requete SQL :
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%
Cela n’a pas marché du premier coup, il faut bien vérifier le projet plusieurs fois. Supprimer puis regénérer les folios. Ne pas hésiter à vérifier les câbles avec une rêgle de conception.
Voilà, en espérant que ça en débloque quelques uns.