Jump to content

sully8391

Member
  • Posts

    40
  • Joined

  • Last visited

Reputation

1 Neutral

Personal Information

  • Location
    United States

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @C. Andrew Dunning Ooof, I have not updated that in a while. Yeah, this is using VW 2021
  2. I'm showing distances between speakers created with the speaker tool in a view port with the dimension tool. Once I create a dimension, half the speakers just disappear. I have to change some parameter that will re-create the autohybrid in order for a speaker to reappear. I tried updating the viewport, and that does not help.
  3. Caught that mistake literally 5 minutes after I posted this, where's the delete button? lol
  4. I'm using the following code to import record formats into a file: recordsList, numRecords = vs.BuildResourceListN(47, full_path) #full_path defined earlier for record in range(recordsList): vs.CreateText(vs.GetNameFromResourceList(recordsList, record + 1)) vs.ImportResourceToCurrentFile(recordsList, record + 1) The first time this is run inside a new Vectorworks document there are 2 record formats missing. I have to run the script again for it to work properly. What's really weird is that the CreateText() call, which I've used to check what's actually in the list, doesn't print out all of the records that are imported; so it looks like there are records missing from the list are still imported, which makes no sense to me. I've also tried every version of BuildResourceList with the same results.
  5. @tbexon Yes, I tried locating the file in the plugins folder and moving it from there, and everything works. That link I posted actually mentions this, but I wasn't reading closely enough. Thank you!
  6. I see, I totally just compressed it wrong. It's running now, but I'm having loads of trouble getting to the directory that the actual file is in. I've tried os.getcwd() and os.path.dirname(sys.argv[0]), but both of those return the directory of the process (different from when I run the script standalone). I need a way to locate the resource file no matter where a user saves the downloaded zip. I might have more luck programming at a more reasonable hour, but if you know a magic line of code that achieves this, I'd love to hear it.
  7. Hi All, I'm trying to implement a simple installation script that will copy a resource file into the user libraries folder. I tested it outside of Vectorworks and it successfully copied and pasted the file into the proper folder, but when I try to pair it with installation nothing happens. It actually appears that script isn't running at all. I altered it so it would throw an error, and nothing happened, then I tried to use it to create some text, and still nothing. It's sitting at the same directory level as the folder holding all of the plugins, which appears to be correct according to this page: https://developer.vectorworks.net/index.php/VS:Implementing_Installation_Script Anyone know what I might be missing?
  8. Thanks for the clarification! I'll have to take a look again.
  9. Thanks for this! I finally got it working. GetNameFromResourceList, and variations on that, will return empty strings/handles if called before ImportResourceToCurrentFile. In my case that's no big deal, because I intend to import all of the symbols anyway. It's also worth noting that the resource list starts its indices at 1.
  10. Hi all, I have some plugin objects that I would like to use predefined symbols instead of drawing their geometry for each instance, but I'm having a lot of trouble figuring out how to import a symbol from a user library. It looks like the functions under "Document List Handling" might hold the key, but I can't make any sense out of them. Is what I'm trying to do possible? What would a basic script for this look like? Thanks!
  11. The dimensions don't even turn red to indicate that the tool is hovering over them, it's like the tool doesn't even see them. They're definitely snapped to the same point, and it works just as expected with the Line object. I've also tried restarting VW. For now I'm just drawing a regular line over the dimension and using that, but it's super weird.
  12. Earlier today I was able to draw an angular dimension between two linear dimensions, now for no apparent reason I cannot select the linear dimensions when I have the angular dimension tool selected. This worked: But here VW will not allow me to draw an angle between the two diagonal dimensions: Any ideas? Thanks all!
  13. Constraints are exactly what I need! Thank you. Do you know if there's any more documentation of the constants in the SDK? At least the horizontal and vertical distance constraints are swapped on the wiki. These are useful, but I'm having trouble with the other constraints, and I don't even know if I'm using the correct constants.
  14. I see. Do you know if maybe there are any extended properties I need to enable to be able to add certain associations? For example, it seems that associations 38 and 39 are responsible for keeping objects attached to truss and lighting pipes, but when I try adding this association to my plugin objects and then print their associations, there are still zero associations. This is essentially the behavior I'm looking for, one object recalculating its position based on another object. Or is there some function out there that does this, that I just haven't found yet? Both objects are event enabled and the delete-on-delete association is working fine. Thank you!
  15. Hi all, The wiki only lists two constants for vs.AddAssociation, 4 and 5. I figure there must be more, but I've scoured the SDK and found nothing. Anybody know if there are other associations, what they are or at least which SDK file I should be looking in? Thanks!
×
×
  • Create New...