Hanger placement to ducts/pipes with spacial parameters for coordination to other services

Hi all, i want to place hanger on pipes/ ducts. but also it must not only attached to bottom of pipes/ducts; but also its rod should aligned with above slab. however, in further process i will have to check for clashes to other linked services. any script or process that comes helpful to this please let me know.
i have a script in which i can only place this hangers to only on one duct/pipes, not in overall services.