I am trying to send a post request from sketchup to the api i made.I have web dialog.On the web dialog,On click the “save” button the post request will be executed.I want to send the information as json.I have been able to access the api i made.How can i access the length,width and send the length,width,volume from the sketchup model as json.here is the model i wrote:
Well then you’ll either need to set that JSON as the request body or the request headers.
SketchUp’s Http::Request class takes a Ruby hash to set headers. It is really dead simple to convert between several hashlike Ruby classes and JSON object strings using Ruby’s JSON library.
If you are interested in more precise total volume of actual components used, it will require iterating through the model and summing the volumes of manifold groups and components.