;;
;; Filename:     sd_count_objects.sh
;; Project:      privat
;; Description:  counts objects selected assembly
;;                 original goes back to DC4 Technisches Büro GmbH
;;                 but was expanded as Zaehlen_20.lsp in April 2022 by myself
;; Version:      30.0x
;;
;; Customer:     --cadde--
;; Author:       der_Wolfgang@forum@cad.de
;; Created:      Mon Jul 14 09:36:49 CEST 2025
;; Modified:     Tue Sep  2 19:04:24 CEST 2025  der_Wolfgang@forum@cad.de
;; SD-Version:   developed with PE90,
;;               should work in old versions as well as in big Modeling
;; reference:    https://ww3.cad.de/foren/ubb/Forum29/HTML/004867.shtml
;;
;; Language:     Lisp
;; Package:      :cadde
;;
;; (C) Copyright 2025 der_Wolfgang@forum@cad.de, all rights reserved.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 250829: works with 13 object types . VIEWs are missing : get_selection does not return them
;; 250830: changed to a loop wih nested conditions, instead of using count-if X times
;; 250830: toggle for parts/assemblies ONLY added
;; 250830: support UI languages EN+DE
;; ------  effort up to here 6 hours - but based on PRE-work in the past and some investigations
;; 250830: adding a combined select focus for elder versions of Modeling
;; 250830: changing from get_selection to inq-obj-children + dump list of pathnames
;; 250830: parts are allowed in addition as start object (because of container, vsets, dpsets)
;; 250830: adding selecting a NEXT obj variable as a hidden loop
;; ------  effort to here +3 hours
;; 250830: adding user customized counters, inklusive customization file here+corp+site+user dir
;; ------  effort to here +2.5 hours
;; 250830: collect and dump other objects to console
;; ------  effort to here +0.5 hours
;; 250830: adding an available command - grrr finding a fine icon is time consuming
;; ------  effort to here +0.5 hours
;; 250830: adding kind of precondition - differs in production version
;; 250831: adding time mesasure
;;         + miscellaneous stuff and time measure comparing to Zaehlen_X0.lsp
;; 250831: experimental: calculate a sharing rate!
;; ------  effort to here +3.5 hours
;; 250901: compile problems / loading shared library
;; 250901: Ausgabe:  [ ] display Box [  ] file [X] Console  +persisted
;; ------  effort to here +3.5 hours
;; 250902: replace an IKIT function by internal function = -5..6% duration but hours on testing (on PE)
;; 250902: experimental calculate a sharing rate: refinement using a condition for special rate cases
;; 250902: remove the workarround for or elder versions of Modeling: *sd-3d-object-seltype*
;; ======  effort total up to here 3+ days
;;
;; TODO:
