Jump to content


  • Content count

  • Joined

  • Last visited

About andyer

  • Rank

Profile Information

  • Country
    United States
  • Are you University user?
  1. Here's a couple of commands to help you get the Full name of blocks: First, select the block you want by clicking on it. Then in the command window, use: blk=bdeGetSelectedBlock(bdeGetCurrentDiagram) bdeGetBlockFullName(blk) Voila!
  2. Looks like I figured it out with some trial and error. If the name of my block is 'SuperBlock', then you can do this with the following commands which deactivate (status = off) or activate, respectively: > bdeSetBlockStatus(bdeGetBlockByFullName('SuperBlock'), 'off') > bdeSetBlockStatus(bdeGetBlockByFullName('SuperBlock'), 'on')
  3. O learned denizens of the Activate forum, Is there a way to set the status of a block (Superblock in this case) programmatically? (e.g. to do this via GUI, right click on a block to select Status --> On/Off). I would like to control the topology of my model via some scripting if possible and wondering if I can do this by controlling the status (or if you have another suggestion I'm open to it, too). Cheers, Andy
  4. Hi everyone, I have a tip I think might be helpful to others as it is helpful to me to load external data files in my Activate models without having to worry about the file path to the data if the model is moved/shared with someone else. If you have data in external files (e.g. like a .mat file or whatever), you may load this into Activate with commands in the Model or Diagram Contexts. Here you need to either have a relative or absolute path to the file: load('my_model_data.mat') <-- must be in the directory set in "File Browser" or load('C:\my_absolute_path\my_model_data.mat') However, if you want to make your model more generic and portable to other directories, you can use the command "bdeGetCurrentModelFilePath", which returns the same path as your Activate model. Then, you can define the model data relative to your model path (e.g., like in the same directory, as below): my_path=bdeGetCurrentModelFilePath() file_path=strcat(my_path,'/../my_model_data.mat') load(file_path); This is nice when sharing models with others so the paths can be set automagically. Hope this helps someone... Cheers, Andy
  5. andyer

    Naming the figure

    Hi Berker, I played around with this a bit : I've found that this works when I test our development build of the next release of Compose (2018.1). However, it is not yet available in 2017.3 so it doesn't help you currently. I'm not aware of a target date for the next release, but this is something to look for. Not sure if this helps, but note that you can rename the figure in 2017.3 by clicking on the name modifying it in the Project Browser. I'm not aware of another command to do this programmatically yet. Perhaps someone else can chime in... Best regards, Andy