Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Cursor rules for rendering Factorio blueprints to SVG with a Python module

Cursor rule file for a project built on the Drawscape Factorio Python module. It includes example code that imports exported entity JSON and writes the generated SVG output.

People use this for

  • factorio blueprint to svg
  • render factorio blueprint svg python
  • convert blueprint json to svg
  • factorio blueprint rendering
  • drawscape factorio svg export
Name
cursor-rules-for-rendering-factorio-blueprints-to-svg-with-a-pyt
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Use this rule

$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-for-rendering-factorio-blueprints-to-svg-with-a-python-modu-fseu/export/mdc" -o .cursor/rules/cursor-rules-for-rendering-factorio-blueprints-to-svg-with-a-pyt.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download cursor-rules-for-rendering-factorio-blueprints-to-svg-with-a-pyt.mdc
Manual install

Save cursor-rules-for-rendering-factorio-blueprints-to-svg-with-a-pyt.mdc as .cursor/rules/cursor-rules-for-rendering-factorio-blueprints-to-svg-with-a-pyt.mdc for this project or ~/.cursor/rules/cursor-rules-for-rendering-factorio-blueprints-to-svg-with-a-pyt.mdc for every project, then start a new session.

Rule


description: "Cursor rules for Python Flask development with JSON guide." globs: */ alwaysApply: false

This project is heavily reliant on our custom Drawscape Factorio python module.

Here is code examples of how to use the module:

from drawscape_factorio import create as createFactorio
from drawscape_factorio import importFUE5

with open('/path/to/exported-entities.json', 'r') as file:
    json_data = json.load(file)
    data = importFUE5(json_data)
    result = createFactorio(data, {
        'theme_name': 'default',
        'color_scheme': 'main',
        'show_layers': ['assets', 'belts', 'walls', 'rails', 'electrical', 'spaceship']
    })

with open(output_file_name, 'w') as f:
    f.write(result['svg_string'])

No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.

Tried it

Reports from people who added this rule to their editor. They roll up into the badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.