Just trying to quickly automate a relatively straightforward task as a way to get more familiar with Dynamo. I’d like to place electrical receptacles along the walls of a room to follow code (every 8 feet on walls longer than 2 feet, etc.).
I don’t use Dynamo much (I’m a long-time Revit user and like to script and use Grasshopper for Rhino), so just discovered the Springs node package. So with LunchBox I quickly got the walls, divided the wall location curves by distance, and placed the OOTB Standard Duplex Receptacle with Springs.HostedInstance.ByPoints.
First problem, the OOTB receptacle is surface hosted, not wall hosted, so it hosted to the underside of the wall. Made a new receptacle family that is wall hosted, which helped a bit, but some are placed at the point along the curve on the wall, some are not (and are even not on a wall at all!).
Second problem, they are hosted on the exterior face of the wall, so I need to figure out a way to specify interior or exterior (preferably referencing a room to determine, not the wall orientation, but that is for later).
I’m using this as a way to get my feet wet, so I’d appreciate help in the spirit of teaching/learning, not just a solution. Thanks!